1 // 2 // Copyright (C) 2015 The Android Open Source Project 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 #ifndef SHILL_POWER_MANAGER_PROXY_STUB_H_ 18 #define SHILL_POWER_MANAGER_PROXY_STUB_H_ 19 20 #include <string> 21 22 #include "shill/power_manager_proxy_interface.h" 23 24 namespace shill { 25 26 // Stub implementation for PowerManagerProxyInterface. 27 class PowerManagerProxyStub : public PowerManagerProxyInterface { 28 public: 29 PowerManagerProxyStub(); 30 ~PowerManagerProxyStub() override = default; 31 32 // Inherited from PowerManagerProxyInterface. 33 bool RegisterSuspendDelay(base::TimeDelta timeout, 34 const std::string& description, 35 int* delay_id_out) override; 36 37 bool UnregisterSuspendDelay(int delay_id) override; 38 39 bool ReportSuspendReadiness(int delay_id, int suspend_id) override; 40 41 bool RegisterDarkSuspendDelay(base::TimeDelta timeout, 42 const std::string& description, 43 int* delay_id_out) override; 44 45 bool UnregisterDarkSuspendDelay(int delay_id) override; 46 47 bool ReportDarkSuspendReadiness(int delay_id, int suspend_id) override; 48 49 bool RecordDarkResumeWakeReason(const std::string& wake_reason) override; 50 51 private: 52 DISALLOW_COPY_AND_ASSIGN(PowerManagerProxyStub); 53 }; 54 55 } // namespace shill 56 57 #endif // SHILL_POWER_MANAGER_PROXY_STUB_H_ 58