blob: 16b150ad635854bd4d675b2ab4cb102b59cfb5bd [file] [log] [blame]
Chris Masoned7732e42011-05-20 11:08:56 -07001// 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
14namespace shill {
15
16// These are the functions that a Manager adaptor must support
17class 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
25class ServiceMockAdaptor : public ServiceAdaptorInterface {
26 public:
27 ServiceMockAdaptor() {}
28 virtual ~ServiceMockAdaptor() {}
29 MOCK_METHOD0(UpdateConnected, void(void));
30
31};
32
33// These are the functions that a Device adaptor must support
34class DeviceMockAdaptor : public DeviceAdaptorInterface {
35 public:
36 DeviceMockAdaptor() {}
37 virtual ~DeviceMockAdaptor() {}
38 MOCK_METHOD0(UpdateEnabled, void(void));
39};
40
41} // namespace shill
42#endif // SHILL_MOCK_ADAPTORS_