Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 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_ADAPTORS_ |
| 6 | #define SHILL_MOCK_ADAPTORS_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "shill/adaptor_interfaces.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | // These are the functions that a Manager adaptor must support |
| 17 | class ManagerMockAdaptor : public ManagerAdaptorInterface { |
| 18 | public: |
| 19 | ManagerMockAdaptor() {} |
| 20 | virtual ~ManagerMockAdaptor() {} |
| 21 | MOCK_METHOD0(UpdateRunning, void(void)); |
| 22 | }; |
| 23 | |
| 24 | // These are the functions that a Service adaptor must support |
| 25 | class ServiceMockAdaptor : public ServiceAdaptorInterface { |
| 26 | public: |
| 27 | ServiceMockAdaptor() {} |
| 28 | virtual ~ServiceMockAdaptor() {} |
| 29 | MOCK_METHOD0(UpdateConnected, void(void)); |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | // These are the functions that a Device adaptor must support |
| 33 | class DeviceMockAdaptor : public DeviceAdaptorInterface { |
| 34 | public: |
| 35 | DeviceMockAdaptor() {} |
| 36 | virtual ~DeviceMockAdaptor() {} |
| 37 | MOCK_METHOD0(UpdateEnabled, void(void)); |
| 38 | }; |
| 39 | |
| 40 | } // namespace shill |
| 41 | #endif // SHILL_MOCK_ADAPTORS_ |