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)); |
Paul Stewart | ebd3856 | 2012-03-23 13:06:40 -0700 | [diff] [blame] | 24 | MOCK_METHOD0(InitDriverPropertyStore, void()); |
Paul Stewart | 65512e1 | 2012-03-26 18:01:08 -0700 | [diff] [blame^] | 25 | MOCK_CONST_METHOD0(unloaded, bool()); |
Darin Petkov | 79d74c9 | 2012-03-07 17:20:32 +0100 | [diff] [blame] | 26 | |
| 27 | private: |
| 28 | DISALLOW_COPY_AND_ASSIGN(MockVPNService); |
| 29 | }; |
| 30 | |
| 31 | } // namespace shill |
| 32 | |
| 33 | #endif // SHILL_MOCK_VPN_SERVICE_ |