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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller_browsertest.cc

Issue 2510203002: Implement auto-login for ARC kiosk. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kiosk_session
Patch Set: Fix unit tests. Created 4 years, 1 month 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // ExistingUserController private member accessors. 205 // ExistingUserController private member accessors.
206 base::OneShotTimer* auto_login_timer() { 206 base::OneShotTimer* auto_login_timer() {
207 return existing_user_controller()->auto_login_timer_.get(); 207 return existing_user_controller()->auto_login_timer_.get();
208 } 208 }
209 209
210 AccountId auto_login_account_id() const { 210 AccountId auto_login_account_id() const {
211 return existing_user_controller()->public_session_auto_login_account_id_; 211 return existing_user_controller()->public_session_auto_login_account_id_;
212 } 212 }
213 213
214 int auto_login_delay() const { 214 int auto_login_delay() const {
215 return existing_user_controller()->public_session_auto_login_delay_; 215 return existing_user_controller()->auto_login_delay_;
216 } 216 }
217 217
218 bool is_login_in_progress() const { 218 bool is_login_in_progress() const {
219 return existing_user_controller()->is_login_in_progress_; 219 return existing_user_controller()->is_login_in_progress_;
220 } 220 }
221 221
222 std::unique_ptr<ExistingUserController> existing_user_controller_; 222 std::unique_ptr<ExistingUserController> existing_user_controller_;
223 223
224 // |mock_login_display_| is owned by the ExistingUserController, which calls 224 // |mock_login_display_| is owned by the ExistingUserController, which calls
225 // CreateLoginDisplay() on the |mock_login_display_host_| to get it. 225 // CreateLoginDisplay() on the |mock_login_display_host_| to get it.
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 PRE_TestLoadingPublicUsersFromLocalState) { 757 PRE_TestLoadingPublicUsersFromLocalState) {
758 // First run propagates public accounts and stores them in Local State. 758 // First run propagates public accounts and stores them in Local State.
759 } 759 }
760 760
761 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, 761 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest,
762 TestLoadingPublicUsersFromLocalState) { 762 TestLoadingPublicUsersFromLocalState) {
763 // Second run loads list of public accounts from Local State. 763 // Second run loads list of public accounts from Local State.
764 } 764 }
765 765
766 } // namespace chromeos 766 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698