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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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 "ash/shell.h" 5 #include "ash/shell.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "chrome/browser/chrome_browser_main.h" 7 #include "chrome/browser/chrome_browser_main.h"
8 #include "chrome/browser/chrome_browser_main_extra_parts.h" 8 #include "chrome/browser/chrome_browser_main_extra_parts.h"
9 #include "chrome/browser/chrome_content_browser_client.h" 9 #include "chrome/browser/chrome_content_browser_client.h"
10 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" 10 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 chromeos::ShowLoginWizard(chromeos::WizardController::kLoginScreenName, 203 chromeos::ShowLoginWizard(chromeos::WizardController::kLoginScreenName,
204 gfx::Size()); 204 gfx::Size());
205 205
206 // Cursor should be hidden at startup 206 // Cursor should be hidden at startup
207 EXPECT_FALSE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible()); 207 EXPECT_FALSE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible());
208 208
209 // Cursor should be shown after cursor is moved. 209 // Cursor should be shown after cursor is moved.
210 EXPECT_TRUE(ui_test_utils::SendMouseMoveSync(gfx::Point())); 210 EXPECT_TRUE(ui_test_utils::SendMouseMoveSync(gfx::Point()));
211 EXPECT_TRUE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible()); 211 EXPECT_TRUE(ash::Shell::GetInstance()->cursor_manager()->IsCursorVisible());
212 212
213 MessageLoop::current()->DeleteSoon( 213 base::MessageLoop::current()->DeleteSoon(
214 FROM_HERE, chromeos::LoginDisplayHostImpl::default_host()); 214 FROM_HERE, chromeos::LoginDisplayHostImpl::default_host());
215 } 215 }
216 216
217 // Verifies that the webui for login comes up successfully. 217 // Verifies that the webui for login comes up successfully.
218 IN_PROC_BROWSER_TEST_F(LoginSigninTest, WebUIVisible) { 218 IN_PROC_BROWSER_TEST_F(LoginSigninTest, WebUIVisible) {
219 scoped_refptr<content::MessageLoopRunner> runner = 219 scoped_refptr<content::MessageLoopRunner> runner =
220 new content::MessageLoopRunner; 220 new content::MessageLoopRunner;
221 content_browser_client_->browser_main_extra_parts_->set_quit_task( 221 content_browser_client_->browser_main_extra_parts_->set_quit_task(
222 runner->QuitClosure()); 222 runner->QuitClosure());
223 runner->Run(); 223 runner->Run();
224 } 224 }
225 225
226 } 226 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698