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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "chromeos/dbus/power_manager/policy.pb.h" | 10 #include "chromeos/dbus/power_manager/policy.pb.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 void FakePowerManagerClient::DecreaseKeyboardBrightness() { | 55 void FakePowerManagerClient::DecreaseKeyboardBrightness() { |
56 } | 56 } |
57 | 57 |
58 void FakePowerManagerClient::IncreaseKeyboardBrightness() { | 58 void FakePowerManagerClient::IncreaseKeyboardBrightness() { |
59 } | 59 } |
60 | 60 |
61 void FakePowerManagerClient::RequestStatusUpdate() { | 61 void FakePowerManagerClient::RequestStatusUpdate() { |
62 } | 62 } |
63 | 63 |
| 64 void FakePowerManagerClient::RequestSuspend() { |
| 65 } |
| 66 |
64 void FakePowerManagerClient::RequestRestart() { | 67 void FakePowerManagerClient::RequestRestart() { |
65 ++num_request_restart_calls_; | 68 ++num_request_restart_calls_; |
66 } | 69 } |
67 | 70 |
68 void FakePowerManagerClient::RequestShutdown() { | 71 void FakePowerManagerClient::RequestShutdown() { |
69 ++num_request_shutdown_calls_; | 72 ++num_request_shutdown_calls_; |
70 } | 73 } |
71 | 74 |
72 void FakePowerManagerClient::NotifyUserActivity( | 75 void FakePowerManagerClient::NotifyUserActivity( |
73 power_manager::UserActivityType type) { | 76 power_manager::UserActivityType type) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 PowerButtonEventReceived(down, timestamp)); | 120 PowerButtonEventReceived(down, timestamp)); |
118 } | 121 } |
119 | 122 |
120 void FakePowerManagerClient::HandleSuspendReadiness() { | 123 void FakePowerManagerClient::HandleSuspendReadiness() { |
121 CHECK(num_pending_suspend_readiness_callbacks_ > 0); | 124 CHECK(num_pending_suspend_readiness_callbacks_ > 0); |
122 | 125 |
123 --num_pending_suspend_readiness_callbacks_; | 126 --num_pending_suspend_readiness_callbacks_; |
124 } | 127 } |
125 | 128 |
126 } // namespace chromeos | 129 } // namespace chromeos |
OLD | NEW |