| 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/message_loop.h" | 6 #include "base/message_loop.h" |
| 6 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 7 #include "chrome/browser/automation/ui_controls.h" | 8 #include "chrome/browser/automation/ui_controls.h" |
| 8 #include "chrome/browser/browser.h" | 9 #include "chrome/browser/browser.h" |
| 9 #include "chrome/browser/browser_window.h" | 10 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
| 11 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 12 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
| 12 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" | 13 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" |
| 13 #include "chrome/browser/chromeos/cros/mock_input_method_library.h" | 14 #include "chrome/browser/chromeos/cros/mock_input_method_library.h" |
| 14 #include "chrome/browser/chromeos/login/screen_locker.h" | 15 #include "chrome/browser/chromeos/login/screen_locker.h" |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 ScreenLocker::Show(); | 256 ScreenLocker::Show(); |
| 256 EXPECT_TRUE(tester->IsLocked()); | 257 EXPECT_TRUE(tester->IsLocked()); |
| 257 | 258 |
| 258 // Close the locker to match expectations. | 259 // Close the locker to match expectations. |
| 259 ScreenLocker::Hide(); | 260 ScreenLocker::Hide(); |
| 260 ui_test_utils::RunAllPendingInMessageLoop(); | 261 ui_test_utils::RunAllPendingInMessageLoop(); |
| 261 EXPECT_FALSE(tester->IsLocked()); | 262 EXPECT_FALSE(tester->IsLocked()); |
| 262 } | 263 } |
| 263 | 264 |
| 264 } // namespace chromeos | 265 } // namespace chromeos |
| OLD | NEW |