blob: 242fb261d8d5888168a224ae6ef0aad8f47071cd [file] [log] [blame]
Gary Morainac1bdb42012-02-16 17:42:29 -08001// Copyright (c) 2012 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_POWER_MANAGER_
6#define SHILL_MOCK_POWER_MANAGER_
7
8#include <base/basictypes.h>
9#include <gmock/gmock.h>
10
11#include "shill/power_manager.h"
12
13namespace shill {
14
15class ProxyFactory;
16
17class MockPowerManager : public PowerManager {
18 public:
19 explicit MockPowerManager(ProxyFactory *proxy_factory);
20 virtual ~MockPowerManager();
21 MOCK_METHOD2(AddStateChangeCallback,
Eric Shienbrood3e20a232012-02-16 11:35:56 -050022 void(const std::string &key,
23 const PowerStateCallback &callback));
Gary Morainac1bdb42012-02-16 17:42:29 -080024 MOCK_METHOD1(RemoveStateChangeCallback, void(const std::string &key));
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(MockPowerManager);
28};
29
30} // namespace shill
31
32#endif // SHILL_MOCK_POWER_MANAGER_