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 #include "chromeos/dbus/fake_power_manager_client.h" | 5 #include "chromeos/dbus/fake_power_manager_client.h" |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "chromeos/dbus/power_manager/policy.pb.h" | 8 #include "chromeos/dbus/power_manager/policy.pb.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 void FakePowerManagerClient::SendSuspendImminent() { | 93 void FakePowerManagerClient::SendSuspendImminent() { |
94 FOR_EACH_OBSERVER(Observer, observers_, SuspendImminent()); | 94 FOR_EACH_OBSERVER(Observer, observers_, SuspendImminent()); |
95 } | 95 } |
96 | 96 |
97 void FakePowerManagerClient::SendSuspendDone() { | 97 void FakePowerManagerClient::SendSuspendDone() { |
98 FOR_EACH_OBSERVER(Observer, observers_, SuspendDone(base::TimeDelta())); | 98 FOR_EACH_OBSERVER(Observer, observers_, SuspendDone(base::TimeDelta())); |
99 } | 99 } |
100 | 100 |
| 101 void FakePowerManagerClient::SendDarkSuspendImminent() { |
| 102 FOR_EACH_OBSERVER(Observer, observers_, DarkSuspendImminent()); |
| 103 } |
| 104 |
101 } // namespace chromeos | 105 } // namespace chromeos |
OLD | NEW |