blob: 21da55ef6a27d004f1ffbc7d914d99b285742335 [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));
23 MOCK_METHOD0(store, PropertyStore*(void));
Paul Stewart03dba0b2011-08-22 16:32:45 -070024 MOCK_METHOD1(UpdateService, void(const ServiceConstRefPtr &to_update));
Chris Masone626719f2011-08-18 16:58:48 -070025
26 private:
27 DISALLOW_COPY_AND_ASSIGN(MockManager);
28};
29
30} // namespace shill
31
32#endif // SHILL_MOCK_MANAGER_