blob: c488529310854a67783ef6fdb1c29ac345f72be7 [file] [log] [blame]
Darin Petkov1c115202012-03-22 15:35:47 +01001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_MOCK_OPENVPN_DRIVER_
6#define SHILL_MOCK_OPENVPN_DRIVER_
7
8#include <gmock/gmock.h>
9
10#include "shill/openvpn_driver.h"
11
12namespace shill {
13
14class MockOpenVPNDriver : public OpenVPNDriver {
15 public:
Paul Stewart451aa7f2012-04-11 19:07:58 -070016 MockOpenVPNDriver();
Darin Petkov1c115202012-03-22 15:35:47 +010017 virtual ~MockOpenVPNDriver();
18
Darin Petkov0cd0d1e2013-02-11 12:49:10 +010019 MOCK_METHOD1(OnReconnecting, void(ReconnectReason reason));
Darin Petkovaba89322013-03-11 14:48:22 +010020 MOCK_METHOD0(IdleService, void());
Darin Petkov1c049c72013-03-21 13:15:45 +010021 MOCK_METHOD2(FailService, void(Service::ConnectFailure failure,
22 const std::string &error_details));
Darin Petkov271fe522012-03-27 13:47:29 +020023
Darin Petkov1c115202012-03-22 15:35:47 +010024 private:
25 DISALLOW_COPY_AND_ASSIGN(MockOpenVPNDriver);
26};
27
28} // namespace shill
29
30#endif // SHILL_MOCK_OPENVPN_DRIVER_