Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: chromeos/dbus/fake_power_manager_client.h

Issue 543303002: chromeos: power: Refactor RendererFreezer and add tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include base/macros.h Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chromeos/dbus/fake_power_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_power_manager_client.h
diff --git a/chromeos/dbus/fake_power_manager_client.h b/chromeos/dbus/fake_power_manager_client.h
index f4b9af59b45a6978d0370ca647a628335312bf01..93f1557a604526f001ab841412098f4d0aaa2831 100644
--- a/chromeos/dbus/fake_power_manager_client.h
+++ b/chromeos/dbus/fake_power_manager_client.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/observer_list.h"
#include "chromeos/dbus/power_manager/policy.pb.h"
#include "chromeos/dbus/power_manager/suspend.pb.h"
@@ -67,6 +68,10 @@ class FakePowerManagerClient : public PowerManagerClient {
void SendPowerButtonEvent(bool down, const base::TimeTicks& timestamp);
private:
+ // Callback that will be run by asynchronous suspend delays to report
+ // readiness.
+ void HandleSuspendReadiness();
+
ObserverList<Observer> observers_;
// Last policy passed to SetPolicy().
@@ -78,6 +83,9 @@ class FakePowerManagerClient : public PowerManagerClient {
int num_set_policy_calls_;
int num_set_is_projecting_calls_;
+ // Number of pending suspend readiness callbacks.
+ int num_pending_suspend_readiness_callbacks_;
+
// Last projecting state set in SetIsProjecting().
bool is_projecting_;
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chromeos/dbus/fake_power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698