OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/automation/ui_controls.h" | 8 #include "chrome/browser/automation/ui_controls.h" |
9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
10 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" | 10 #include "chrome/browser/chromeos/cros/mock_screen_lock_library.h" |
11 #include "chrome/browser/chromeos/login/mock_authenticator.h" | 11 #include "chrome/browser/chromeos/login/mock_authenticator.h" |
12 #include "chrome/browser/chromeos/login/screen_locker.h" | 12 #include "chrome/browser/chromeos/login/screen_locker.h" |
13 #include "chrome/browser/chromeos/login/screen_locker_tester.h" | 13 #include "chrome/browser/chromeos/login/screen_locker_tester.h" |
14 #include "chrome/browser/chromeos/login/user_manager.h" | 14 #include "chrome/browser/chromeos/login/user_manager.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/browser_window.h" | 17 #include "chrome/browser/ui/browser_window.h" |
18 #include "chrome/browser/ui/views/browser_dialogs.h" | 18 #include "chrome/browser/ui/views/browser_dialogs.h" |
19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/test/ui_test_utils.h" | 21 #include "chrome/test/base/ui_test_utils.h" |
22 #include "content/common/notification_service.h" | 22 #include "content/common/notification_service.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "views/controls/textfield/textfield.h" | 25 #include "views/controls/textfield/textfield.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // An object that wait for lock state and fullscreen state. | 29 // An object that wait for lock state and fullscreen state. |
30 class Waiter : public NotificationObserver { | 30 class Waiter : public NotificationObserver { |
31 public: | 31 public: |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 ui_test_utils::RunAllPendingInMessageLoop(); | 307 ui_test_utils::RunAllPendingInMessageLoop(); |
308 EXPECT_EQ("", tester->GetPassword()); | 308 EXPECT_EQ("", tester->GetPassword()); |
309 | 309 |
310 // Close the locker to match expectations. | 310 // Close the locker to match expectations. |
311 ScreenLocker::Hide(); | 311 ScreenLocker::Hide(); |
312 ui_test_utils::RunAllPendingInMessageLoop(); | 312 ui_test_utils::RunAllPendingInMessageLoop(); |
313 EXPECT_FALSE(tester->IsLocked()); | 313 EXPECT_FALSE(tester->IsLocked()); |
314 } | 314 } |
315 | 315 |
316 } // namespace chromeos | 316 } // namespace chromeos |
OLD | NEW |