blob: 5b97d96d51374f357a908d9355a7db48ca51a3e0 [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));
Paul Stewart75225512012-01-26 22:51:33 -080030 MOCK_METHOD2(HandleProfileEntryDeletion,
31 bool (const ProfileRefPtr &profile,
32 const std::string &entry_name));
Paul Stewart20088d82012-02-16 06:58:55 -080033 MOCK_METHOD1(IsPortalDetectionEnabled, bool(Technology::Identifier tech));
34 MOCK_CONST_METHOD0(GetPortalCheckURL, const std::string &());
Chris Masone626719f2011-08-18 16:58:48 -070035
36 private:
37 DISALLOW_COPY_AND_ASSIGN(MockManager);
38};
39
40} // namespace shill
41
42#endif // SHILL_MOCK_MANAGER_