Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome/browser/chromeos/login/screen_locker_browsertest.cc

Issue 9390038: Move automation/ui_controls to ui/ui_controls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_aura fix, sync Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "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"
9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" 8 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h"
10 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h" 9 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h"
11 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h" 10 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h"
12 #include "chrome/browser/chromeos/login/mock_authenticator.h" 11 #include "chrome/browser/chromeos/login/mock_authenticator.h"
13 #include "chrome/browser/chromeos/login/screen_locker.h" 12 #include "chrome/browser/chromeos/login/screen_locker.h"
14 #include "chrome/browser/chromeos/login/screen_locker_tester.h" 13 #include "chrome/browser/chromeos/login/screen_locker_tester.h"
15 #include "chrome/browser/chromeos/login/user_manager.h" 14 #include "chrome/browser/chromeos/login/user_manager.h"
16 #include "chrome/browser/profiles/profile_manager.h" 15 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_window.h" 17 #include "chrome/browser/ui/browser_window.h"
19 #include "chrome/browser/ui/views/browser_dialogs.h" 18 #include "chrome/browser/ui/views/browser_dialogs.h"
20 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
21 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
22 #include "chrome/test/base/ui_test_utils.h" 21 #include "chrome/test/base/ui_test_utils.h"
23 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
24 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "ui/ui_controls/ui_controls.h"
26 #include "ui/views/widget/widget.h" 26 #include "ui/views/widget/widget.h"
27 27
28 #if defined(TOOLKIT_USES_GTK) 28 #if defined(TOOLKIT_USES_GTK)
29 #include "ui/views/widget/native_widget_gtk.h" 29 #include "ui/views/widget/native_widget_gtk.h"
30 #endif 30 #endif
31 31
32 namespace { 32 namespace {
33 33
34 // An object that wait for lock state and fullscreen state. 34 // An object that wait for lock state and fullscreen state.
35 class Waiter : public content::NotificationObserver { 35 class Waiter : public content::NotificationObserver {
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 ui_test_utils::RunAllPendingInMessageLoop(); 338 ui_test_utils::RunAllPendingInMessageLoop();
339 EXPECT_EQ("", tester->GetPassword()); 339 EXPECT_EQ("", tester->GetPassword());
340 340
341 // Close the locker to match expectations. 341 // Close the locker to match expectations.
342 ScreenLocker::Hide(); 342 ScreenLocker::Hide();
343 ui_test_utils::RunAllPendingInMessageLoop(); 343 ui_test_utils::RunAllPendingInMessageLoop();
344 EXPECT_FALSE(tester->IsLocked()); 344 EXPECT_FALSE(tester->IsLocked());
345 } 345 }
346 346
347 } // namespace chromeos 347 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/automation/ui_controls_win.cc ('k') | chrome/browser/printing/print_dialog_cloud_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698