Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 1 | // 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 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockOpenVPNDriver : public OpenVPNDriver { |
| 15 | public: |
Paul Stewart | 451aa7f | 2012-04-11 19:07:58 -0700 | [diff] [blame] | 16 | MockOpenVPNDriver(); |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 17 | virtual ~MockOpenVPNDriver(); |
| 18 | |
Darin Petkov | 0cd0d1e | 2013-02-11 12:49:10 +0100 | [diff] [blame] | 19 | MOCK_METHOD1(OnReconnecting, void(ReconnectReason reason)); |
Darin Petkov | aba8932 | 2013-03-11 14:48:22 +0100 | [diff] [blame] | 20 | MOCK_METHOD0(IdleService, void()); |
Darin Petkov | 1c049c7 | 2013-03-21 13:15:45 +0100 | [diff] [blame] | 21 | MOCK_METHOD2(FailService, void(Service::ConnectFailure failure, |
| 22 | const std::string &error_details)); |
Darin Petkov | 271fe52 | 2012-03-27 13:47:29 +0200 | [diff] [blame] | 23 | |
Darin Petkov | 1c11520 | 2012-03-22 15:35:47 +0100 | [diff] [blame] | 24 | private: |
| 25 | DISALLOW_COPY_AND_ASSIGN(MockOpenVPNDriver); |
| 26 | }; |
| 27 | |
| 28 | } // namespace shill |
| 29 | |
| 30 | #endif // SHILL_MOCK_OPENVPN_DRIVER_ |