| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 waiting_ = true; | 74 waiting_ = true; |
| 75 content::RunMessageLoop(); | 75 content::RunMessageLoop(); |
| 76 waiting_ = false; | 76 waiting_ = false; |
| 77 } | 77 } |
| 78 ASSERT_TRUE(login_attempted_); | 78 ASSERT_TRUE(login_attempted_); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void LoginAttemptObserver::LoginAttempted() { | 81 void LoginAttemptObserver::LoginAttempted() { |
| 82 login_attempted_ = true; | 82 login_attempted_ = true; |
| 83 if (waiting_) | 83 if (waiting_) |
| 84 MessageLoopForUI::current()->Quit(); | 84 base::MessageLoopForUI::current()->Quit(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } | 87 } |
| 88 | 88 |
| 89 namespace chromeos { | 89 namespace chromeos { |
| 90 | 90 |
| 91 namespace test { | 91 namespace test { |
| 92 | 92 |
| 93 class WebUIScreenLockerTester : public ScreenLockerTester { | 93 class WebUIScreenLockerTester : public ScreenLockerTester { |
| 94 public: | 94 public: |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 new MockAuthenticator(ScreenLocker::screen_locker_, user, password)); | 205 new MockAuthenticator(ScreenLocker::screen_locker_, user, password)); |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace test | 208 } // namespace test |
| 209 | 209 |
| 210 test::ScreenLockerTester* ScreenLocker::GetTester() { | 210 test::ScreenLockerTester* ScreenLocker::GetTester() { |
| 211 return new test::WebUIScreenLockerTester(); | 211 return new test::WebUIScreenLockerTester(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace chromeos | 214 } // namespace chromeos |
| OLD | NEW |