blob: 164afa37486150d5342fc245dcab32048102552e [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
Darin Petkovef34f182011-08-26 14:14:40 -07008#include <base/basictypes.h>
Chris Masone626719f2011-08-18 16:58:48 -07009#include <gmock/gmock.h>
10
11#include "shill/manager.h"
12
13namespace shill {
14
Chris Masone626719f2011-08-18 16:58:48 -070015class MockManager : public Manager {
16 public:
17 MockManager(ControlInterface *control_interface,
18 EventDispatcher *dispatcher,
Darin Petkovef34f182011-08-26 14:14:40 -070019 GLib *glib);
20 virtual ~MockManager();
Chris Masone626719f2011-08-18 16:58:48 -070021
22 MOCK_METHOD0(device_info, DeviceInfo*(void));
mukesh agrawalde29fa82011-09-16 16:16:36 -070023 MOCK_METHOD0(mutable_store, PropertyStore*(void));
24 MOCK_CONST_METHOD0(store, const PropertyStore&(void));
mukesh agrawal32399322011-09-01 10:53:43 -070025 MOCK_METHOD1(RegisterService, void(const ServiceRefPtr &to_manage));
Paul Stewart03dba0b2011-08-22 16:32:45 -070026 MOCK_METHOD1(UpdateService, void(const ServiceConstRefPtr &to_update));
Chris Masone626719f2011-08-18 16:58:48 -070027
28 private:
29 DISALLOW_COPY_AND_ASSIGN(MockManager);
30};
31
32} // namespace shill
33
34#endif // SHILL_MOCK_MANAGER_