Gary Morain | ac1bdb4 | 2012-02-16 17:42:29 -0800 | [diff] [blame] | 1 | // 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 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class ProxyFactory; |
| 16 | |
| 17 | class MockPowerManager : public PowerManager { |
| 18 | public: |
| 19 | explicit MockPowerManager(ProxyFactory *proxy_factory); |
| 20 | virtual ~MockPowerManager(); |
| 21 | MOCK_METHOD2(AddStateChangeCallback, |
Eric Shienbrood | 3e20a23 | 2012-02-16 11:35:56 -0500 | [diff] [blame] | 22 | void(const std::string &key, |
| 23 | const PowerStateCallback &callback)); |
Gary Morain | ac1bdb4 | 2012-02-16 17:42:29 -0800 | [diff] [blame] | 24 | 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_ |