OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |