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

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

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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 | Annotate | Revision Log
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/login/screen_locker_tester.h" 5 #include "chrome/browser/chromeos/login/screen_locker_tester.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 23 matching lines...) Expand all
34 virtual ~LoginAttemptObserver(); 34 virtual ~LoginAttemptObserver();
35 35
36 void WaitForAttempt(); 36 void WaitForAttempt();
37 37
38 // Overridden from LoginStatusConsumer: 38 // Overridden from LoginStatusConsumer:
39 virtual void OnLoginFailure(const chromeos::LoginFailure& error) OVERRIDE { 39 virtual void OnLoginFailure(const chromeos::LoginFailure& error) OVERRIDE {
40 LoginAttempted(); 40 LoginAttempted();
41 } 41 }
42 42
43 virtual void OnLoginSuccess( 43 virtual void OnLoginSuccess(
44 const std::string& username, 44 const chromeos::UserCredentials& credentials,
45 const std::string& password,
46 bool pending_requests, 45 bool pending_requests,
47 bool using_oauth) OVERRIDE { 46 bool using_oauth) OVERRIDE {
48 LoginAttempted(); 47 LoginAttempted();
49 } 48 }
50 49
51 private: 50 private:
52 void LoginAttempted(); 51 void LoginAttempted();
53 52
54 chromeos::ScreenLocker* locker_; 53 chromeos::ScreenLocker* locker_;
55 bool login_attempted_; 54 bool login_attempted_;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 new MockAuthenticator(ScreenLocker::screen_locker_, user, password)); 205 new MockAuthenticator(ScreenLocker::screen_locker_, user, password));
207 } 206 }
208 207
209 } // namespace test 208 } // namespace test
210 209
211 test::ScreenLockerTester* ScreenLocker::GetTester() { 210 test::ScreenLockerTester* ScreenLocker::GetTester() {
212 return new test::WebUIScreenLockerTester(); 211 return new test::WebUIScreenLockerTester();
213 } 212 }
214 213
215 } // namespace chromeos 214 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker.cc ('k') | chrome/browser/chromeos/login/test_attempt_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698