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
3 // found in the LICENSE file.
5 #include "chromeos/dbus/fake_power_manager_client.h"
6 #include "chromeos/dbus/power_manager/policy.pb.h"
10 FakePowerManagerClient::FakePowerManagerClient()
11 : request_restart_call_count_(0) {
14 FakePowerManagerClient::~FakePowerManagerClient() {
17 void FakePowerManagerClient::AddObserver(Observer
* observer
) {
20 void FakePowerManagerClient::RequestStatusUpdate(
21 UpdateRequestType update_type
) {
24 void FakePowerManagerClient::SetPolicy(
25 const power_manager::PowerManagementPolicy
& policy
) {
29 void FakePowerManagerClient::RequestShutdown() {
32 void FakePowerManagerClient::RequestIdleNotification(int64 threshold_secs
) {
35 void FakePowerManagerClient::DecreaseScreenBrightness(bool allow_off
) {
38 void FakePowerManagerClient::SetScreenBrightnessPercent(double percent
,
42 void FakePowerManagerClient::GetScreenBrightnessPercent(
43 const GetScreenBrightnessPercentCallback
& callback
) {
46 base::Closure
FakePowerManagerClient::GetSuspendReadinessCallback() {
47 return base::Closure();
50 bool FakePowerManagerClient::HasObserver(Observer
* observer
) {
54 void FakePowerManagerClient::RequestRestart() {
55 ++request_restart_call_count_
;
58 void FakePowerManagerClient::IncreaseKeyboardBrightness() {
61 void FakePowerManagerClient::IncreaseScreenBrightness() {
64 void FakePowerManagerClient::NotifyVideoActivity(
65 const base::TimeTicks
& last_activity_time
,
69 void FakePowerManagerClient::DecreaseKeyboardBrightness() {
72 void FakePowerManagerClient::SetIsProjecting(bool is_projecting
) {
75 void FakePowerManagerClient::RemoveObserver(Observer
* observer
) {
78 void FakePowerManagerClient::NotifyUserActivity() {
81 } // namespace chromeos