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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_test_helper.cc

Issue 852453005: chromeos: Make CheckIdleStateIsLocked() query D-Bus client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sigh, MockSessionManagerClient Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/settings/device_settings_test_helper.h" 5 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" 10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 SessionManagerClient::StubDelegate* delegate) {} 97 SessionManagerClient::StubDelegate* delegate) {}
98 98
99 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {} 99 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {}
100 100
101 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {} 101 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {}
102 102
103 bool DeviceSettingsTestHelper::HasObserver(const Observer* observer) const { 103 bool DeviceSettingsTestHelper::HasObserver(const Observer* observer) const {
104 return false; 104 return false;
105 } 105 }
106 106
107 bool DeviceSettingsTestHelper::IsScreenLocked() const { return false; }
108
107 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} 109 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {}
108 110
109 void DeviceSettingsTestHelper::RestartJob(int pid, 111 void DeviceSettingsTestHelper::RestartJob(int pid,
110 const std::string& command_line) {} 112 const std::string& command_line) {}
111 113
112 void DeviceSettingsTestHelper::StartSession(const std::string& user_email) {} 114 void DeviceSettingsTestHelper::StartSession(const std::string& user_email) {}
113 115
114 void DeviceSettingsTestHelper::StopSession() {} 116 void DeviceSettingsTestHelper::StopSession() {}
115 117
116 void DeviceSettingsTestHelper::NotifySupervisedUserCreationStarted() {} 118 void DeviceSettingsTestHelper::NotifySupervisedUserCreationStarted() {}
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 const_cast<user_manager::User*>(user)); 258 const_cast<user_manager::User*>(user));
257 } 259 }
258 OwnerSettingsServiceChromeOS* service = 260 OwnerSettingsServiceChromeOS* service =
259 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); 261 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get());
260 CHECK(service); 262 CHECK(service);
261 if (tpm_is_ready) 263 if (tpm_is_ready)
262 service->OnTPMTokenReady(true /* token is enabled */); 264 service->OnTPMTokenReady(true /* token is enabled */);
263 } 265 }
264 266
265 } // namespace chromeos 267 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_test_helper.h ('k') | chrome/browser/idle_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698