blob: d59097e636432de7dbb8f4818462f552f7f704b6 [file] [log] [blame]
Thieu Le3426c8f2012-01-11 17:35:11 -08001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Chris Masone626719f2011-08-18 16:58:48 -07002// 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,
Thieu Le3426c8f2012-01-11 17:35:11 -080019 Metrics *metrics,
Darin Petkovef34f182011-08-26 14:14:40 -070020 GLib *glib);
21 virtual ~MockManager();
Chris Masone626719f2011-08-18 16:58:48 -070022
23 MOCK_METHOD0(device_info, DeviceInfo*(void));
mukesh agrawalde29fa82011-09-16 16:16:36 -070024 MOCK_METHOD0(mutable_store, PropertyStore*(void));
25 MOCK_CONST_METHOD0(store, const PropertyStore&(void));
mukesh agrawal4eb4d782011-12-05 17:34:37 +000026 MOCK_METHOD1(HasService, bool(const ServiceRefPtr &to_manage));
mukesh agrawal32399322011-09-01 10:53:43 -070027 MOCK_METHOD1(RegisterService, void(const ServiceRefPtr &to_manage));
mukesh agrawal00917ce2011-11-22 23:56:55 +000028 MOCK_METHOD1(UpdateService, void(const ServiceRefPtr &to_update));
Chris Masone6515aab2011-10-12 16:19:09 -070029 MOCK_METHOD1(DeregisterService, void(const ServiceRefPtr &to_forget));
Chris Masone626719f2011-08-18 16:58:48 -070030
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MockManager);
33};
34
35} // namespace shill
36
37#endif // SHILL_MOCK_MANAGER_