OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |