Darin Petkov | 3ec5534 | 2012-09-28 14:04:44 +0200 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 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_PROXY_H_ |
| 6 | #define SHILL_MOCK_POWER_MANAGER_PROXY_H_ |
| 7 | |
| 8 | #include <base/basictypes.h> |
| 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | #include "shill/power_manager_proxy_interface.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class MockPowerManagerProxy : public PowerManagerProxyInterface { |
| 16 | public: |
| 17 | MockPowerManagerProxy(); |
| 18 | virtual ~MockPowerManagerProxy(); |
| 19 | |
Daniel Erat | f975367 | 2013-01-24 10:17:02 -0800 | [diff] [blame] | 20 | MOCK_METHOD3(RegisterSuspendDelay, |
| 21 | bool(base::TimeDelta timeout, |
| 22 | const std::string &description, |
| 23 | int *delay_id_out)); |
Daniel Erat | 0818cca | 2012-12-14 10:16:21 -0800 | [diff] [blame] | 24 | MOCK_METHOD1(UnregisterSuspendDelay, bool(int delay_id)); |
| 25 | MOCK_METHOD2(ReportSuspendReadiness, bool(int delay_id, int suspend_id)); |
Darin Petkov | 394b7d4 | 2011-11-03 15:48:02 +0100 | [diff] [blame] | 26 | |
| 27 | private: |
| 28 | DISALLOW_COPY_AND_ASSIGN(MockPowerManagerProxy); |
| 29 | }; |
| 30 | |
| 31 | } // namespace shill |
| 32 | |
| 33 | #endif // SHILL_MOCK_POWER_MANAGER_PROXY_H_ |