| 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 "ash/shell.h" | 5 #include "ash/shell.h" |
| 6 #include "ash/system/tray/system_tray.h" | 6 #include "ash/system/tray/system_tray.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/chromeos/login/login_manager_test.h" | 10 #include "chrome/browser/chromeos/login/login_manager_test.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // Login screen needs to be shown explicitly when running test. | 221 // Login screen needs to be shown explicitly when running test. |
| 222 ShowLoginWizard(WizardController::kLoginScreenName); | 222 ShowLoginWizard(WizardController::kLoginScreenName); |
| 223 | 223 |
| 224 // Cursor should be hidden at startup | 224 // Cursor should be hidden at startup |
| 225 EXPECT_FALSE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible()); | 225 EXPECT_FALSE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible()); |
| 226 | 226 |
| 227 // Cursor should be shown after cursor is moved. | 227 // Cursor should be shown after cursor is moved. |
| 228 EXPECT_TRUE(ui_test_utils::SendMouseMoveSync(gfx::Point())); | 228 EXPECT_TRUE(ui_test_utils::SendMouseMoveSync(gfx::Point())); |
| 229 EXPECT_TRUE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible()); | 229 EXPECT_TRUE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible()); |
| 230 | 230 |
| 231 base::MessageLoop::current()->DeleteSoon( | 231 base::MessageLoop::current()->DeleteSoon(FROM_HERE, |
| 232 FROM_HERE, LoginDisplayHostImpl::default_host()); | 232 LoginDisplayHost::default_host()); |
| 233 | 233 |
| 234 TestSystemTrayIsVisible(); | 234 TestSystemTrayIsVisible(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 // Verifies that the webui for login comes up successfully. | 237 // Verifies that the webui for login comes up successfully. |
| 238 IN_PROC_BROWSER_TEST_F(LoginSigninTest, WebUIVisible) { | 238 IN_PROC_BROWSER_TEST_F(LoginSigninTest, WebUIVisible) { |
| 239 base::TimeDelta no_timeout; | 239 base::TimeDelta no_timeout; |
| 240 EXPECT_TRUE(tracing::WaitForWatchEvent(no_timeout)); | 240 EXPECT_TRUE(tracing::WaitForWatchEvent(no_timeout)); |
| 241 std::string json_events; | 241 std::string json_events; |
| 242 ASSERT_TRUE(tracing::EndTracing(&json_events)); | 242 ASSERT_TRUE(tracing::EndTracing(&json_events)); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 254 content::WindowedNotificationObserver session_start_waiter( | 254 content::WindowedNotificationObserver session_start_waiter( |
| 255 chrome::NOTIFICATION_SESSION_STARTED, | 255 chrome::NOTIFICATION_SESSION_STARTED, |
| 256 content::NotificationService::AllSources()); | 256 content::NotificationService::AllSources()); |
| 257 SubmitGaiaAuthOfflineForm(kTestUser, kPassword); | 257 SubmitGaiaAuthOfflineForm(kTestUser, kPassword); |
| 258 session_start_waiter.Wait(); | 258 session_start_waiter.Wait(); |
| 259 | 259 |
| 260 TestSystemTrayIsVisible(); | 260 TestSystemTrayIsVisible(); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace chromeos | 263 } // namespace chromeos |
| OLD | NEW |