blob: e8f709dbb0106beb884ca7233bdc61a456510089 [file] [log] [blame]
Chris Masone626719f2011-08-18 16:58:48 -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_MANAGER_
6#define SHILL_MOCK_MANAGER_
7
8#include <base/memory/ref_counted.h>
9#include <gmock/gmock.h>
10
11#include "shill/manager.h"
12
13namespace shill {
14
15class ControlInterface;
16class DeviceInfo;
17class EventDispatcher;
18class GLib;
19class PropertyStore;
20
21class MockManager : public Manager {
22 public:
23 MockManager(ControlInterface *control_interface,
24 EventDispatcher *dispatcher,
25 GLib *glib)
Chris Masone2ae797d2011-08-23 20:41:00 -070026 : Manager(control_interface, dispatcher, glib, "", "", "") {
Chris Masone626719f2011-08-18 16:58:48 -070027 }
28 ~MockManager() {}
29
30 MOCK_METHOD0(device_info, DeviceInfo*(void));
31 MOCK_METHOD0(store, PropertyStore*(void));
Paul Stewart03dba0b2011-08-22 16:32:45 -070032 MOCK_METHOD1(UpdateService, void(const ServiceConstRefPtr &to_update));
Chris Masone626719f2011-08-18 16:58:48 -070033
34 private:
35 DISALLOW_COPY_AND_ASSIGN(MockManager);
36};
37
38} // namespace shill
39
40#endif // SHILL_MOCK_MANAGER_