summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/power_manager_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/dbus/power_manager_client.h')
-rw-r--r--chromeos/dbus/power_manager_client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index a24312b..5c957f4 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -143,6 +143,10 @@ class CHROMEOS_EXPORT PowerManagerClient : public DBusClient {
// readiness for suspend. See Observer::SuspendImminent().
virtual base::Closure GetSuspendReadinessCallback() = 0;
+ // Returns the number of callbacks returned by GetSuspendReadinessCallback()
+ // for the current suspend attempt but not yet called. Used by tests.
+ virtual int GetNumPendingSuspendReadinessCallbacks() = 0;
+
// Creates the instance.
static PowerManagerClient* Create(DBusClientImplementationType type);