Add PowerManagerInterface.
Hide all dbus stuff under the new interface, so that we can implement
a real power_manager for android in the future if needed.
Test: mma
Bug: 28800946
Change-Id: I26c883f4d0bc71f0410dfe4422b22bdd9df70575
diff --git a/system_state.h b/system_state.h
index 7923217..4d040ec 100644
--- a/system_state.h
+++ b/system_state.h
@@ -17,12 +17,6 @@
#ifndef UPDATE_ENGINE_SYSTEM_STATE_H_
#define UPDATE_ENGINE_SYSTEM_STATE_H_
-namespace org {
-namespace chromium {
-class PowerManagerProxyInterface;
-} // namespace chromium
-} // namespace org
-
class MetricsLibraryInterface;
namespace chromeos_update_manager {
@@ -49,6 +43,7 @@
class OmahaRequestParams;
class P2PManager;
class PayloadStateInterface;
+class PowerManagerInterface;
class PrefsInterface;
class UpdateAttempter;
class WeaveServiceInterface;
@@ -112,8 +107,8 @@
// Returns a pointer to the UpdateManager singleton.
virtual chromeos_update_manager::UpdateManager* update_manager() = 0;
- // DBus proxies. Mocked during test.
- virtual org::chromium::PowerManagerProxyInterface* power_manager_proxy() = 0;
+ // Gets the power manager object. Mocked during test.
+ virtual PowerManagerInterface* power_manager() = 0;
// If true, this is the first instance of the update engine since the system
// restarted. Important for tracking whether you are running instance of the