Peter Qiu | 8631154 | 2015-09-01 16:38:20 -0700 | [diff] [blame^] | 1 | // Copyright 2015 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_POWER_MANAGER_PROXY_STUB_H_ |
| 6 | #define SHILL_POWER_MANAGER_PROXY_STUB_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include "shill/power_manager_proxy_interface.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | // Stub implementation for PowerManagerProxyInterface. |
| 15 | class PowerManagerProxyStub : public PowerManagerProxyInterface { |
| 16 | public: |
| 17 | PowerManagerProxyStub(); |
| 18 | ~PowerManagerProxyStub() override = default; |
| 19 | |
| 20 | // Inherited from PowerManagerProxyInterface. |
| 21 | bool RegisterSuspendDelay(base::TimeDelta timeout, |
| 22 | const std::string& description, |
| 23 | int* delay_id_out) override; |
| 24 | |
| 25 | bool UnregisterSuspendDelay(int delay_id) override; |
| 26 | |
| 27 | bool ReportSuspendReadiness(int delay_id, int suspend_id) override; |
| 28 | |
| 29 | bool RegisterDarkSuspendDelay(base::TimeDelta timeout, |
| 30 | const std::string& description, |
| 31 | int* delay_id_out) override; |
| 32 | |
| 33 | bool UnregisterDarkSuspendDelay(int delay_id) override; |
| 34 | |
| 35 | bool ReportDarkSuspendReadiness(int delay_id, int suspend_id) override; |
| 36 | |
| 37 | bool RecordDarkResumeWakeReason(const std::string& wake_reason) override; |
| 38 | |
| 39 | private: |
| 40 | DISALLOW_COPY_AND_ASSIGN(PowerManagerProxyStub); |
| 41 | }; |
| 42 | |
| 43 | } // namespace shill |
| 44 | |
| 45 | #endif // SHILL_POWER_MANAGER_PROXY_STUB_H_ |