| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "chrome/browser/automation/ui_controls.h" | 8 #include "chrome/browser/automation/ui_controls.h" |
| 9 #include "chrome/browser/browser_thread.h" | |
| 10 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
| 11 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 10 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
| 12 #include "chrome/browser/chromeos/cros/mock_input_method_library.h" | 11 #include "chrome/browser/chromeos/cros/mock_input_method_library.h" |
| 13 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" | 12 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" |
| 14 #include "chrome/browser/chromeos/login/mock_authenticator.h" | 13 #include "chrome/browser/chromeos/login/mock_authenticator.h" |
| 15 #include "chrome/browser/chromeos/login/screen_locker.h" | 14 #include "chrome/browser/chromeos/login/screen_locker.h" |
| 16 #include "chrome/browser/chromeos/login/screen_locker_tester.h" | 15 #include "chrome/browser/chromeos/login/screen_locker_tester.h" |
| 17 #include "chrome/browser/chromeos/login/user_manager.h" | 16 #include "chrome/browser/chromeos/login/user_manager.h" |
| 18 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/browser/views/browser_dialogs.h" | 18 #include "chrome/browser/views/browser_dialogs.h" |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 ScreenLocker::Show(); | 281 ScreenLocker::Show(); |
| 283 EXPECT_TRUE(tester->IsLocked()); | 282 EXPECT_TRUE(tester->IsLocked()); |
| 284 | 283 |
| 285 // Close the locker to match expectations. | 284 // Close the locker to match expectations. |
| 286 ScreenLocker::Hide(); | 285 ScreenLocker::Hide(); |
| 287 ui_test_utils::RunAllPendingInMessageLoop(); | 286 ui_test_utils::RunAllPendingInMessageLoop(); |
| 288 EXPECT_FALSE(tester->IsLocked()); | 287 EXPECT_FALSE(tester->IsLocked()); |
| 289 } | 288 } |
| 290 | 289 |
| 291 } // namespace chromeos | 290 } // namespace chromeos |
| OLD | NEW |