Darin Petkov | 79d74c9 | 2012-03-07 17:20:32 +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_VPN_SERVICE_ |
| 6 | #define SHILL_MOCK_VPN_SERVICE_ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "shill/vpn_service.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockVPNService : public VPNService { |
| 15 | public: |
| 16 | MockVPNService(ControlInterface *control, |
| 17 | EventDispatcher *dispatcher, |
| 18 | Metrics *metrics, |
| 19 | Manager *manager, |
| 20 | VPNDriver *driver); |
| 21 | virtual ~MockVPNService(); |
| 22 | |
| 23 | MOCK_METHOD1(SetState, void(ConnectState state)); |
Darin Petkov | 85d5317 | 2013-03-13 16:43:28 +0100 | [diff] [blame] | 24 | MOCK_METHOD1(SetFailure, void(ConnectFailure failure)); |
Paul Stewart | ebd3856 | 2012-03-23 13:06:40 -0700 | [diff] [blame] | 25 | MOCK_METHOD0(InitDriverPropertyStore, void()); |
Paul Stewart | 65512e1 | 2012-03-26 18:01:08 -0700 | [diff] [blame] | 26 | MOCK_CONST_METHOD0(unloaded, bool()); |
Darin Petkov | 79d74c9 | 2012-03-07 17:20:32 +0100 | [diff] [blame] | 27 | |
| 28 | private: |
| 29 | DISALLOW_COPY_AND_ASSIGN(MockVPNService); |
| 30 | }; |
| 31 | |
| 32 | } // namespace shill |
| 33 | |
| 34 | #endif // SHILL_MOCK_VPN_SERVICE_ |