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

Side by Side Diff: chromeos/dbus/fake_power_manager_client.h

Issue 249413002: chromeos: Clean up PowerManagerClient nits from r265058. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos/dbus/fake_power_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "base/time/time.h"
13 #include "chromeos/dbus/power_manager/policy.pb.h" 12 #include "chromeos/dbus/power_manager/policy.pb.h"
14 #include "chromeos/dbus/power_manager/suspend.pb.h" 13 #include "chromeos/dbus/power_manager/suspend.pb.h"
15 #include "chromeos/dbus/power_manager_client.h" 14 #include "chromeos/dbus/power_manager_client.h"
16 15
17 namespace chromeos { 16 namespace chromeos {
18 17
19 // A fake implementation of PowerManagerClient. This remembers the policy passed 18 // A fake implementation of PowerManagerClient. This remembers the policy passed
20 // to SetPolicy() and the user of this class can inspect the last set policy by 19 // to SetPolicy() and the user of this class can inspect the last set policy by
21 // get_policy(). 20 // get_policy().
22 class FakePowerManagerClient : public PowerManagerClient { 21 class FakePowerManagerClient : public PowerManagerClient {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 84
86 // Last projecting state set in SetIsProjecting(). 85 // Last projecting state set in SetIsProjecting().
87 bool is_projecting_; 86 bool is_projecting_;
88 87
89 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); 88 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient);
90 }; 89 };
91 90
92 } // namespace chromeos 91 } // namespace chromeos
93 92
94 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 93 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698