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/test/in_process_browser_test.cc

Issue 1591004: RunAllPendingEvents -> ui_test_utils::RunAllPendingInMessageLoop (Closed)
Patch Set: " Created 10 years, 8 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
« no previous file with comments | « chrome/test/in_process_browser_test.h ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/test/in_process_browser_test.h" 5 #include "chrome/test/in_process_browser_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 NewRunnableMethod(this, &InProcessBrowserTest::TimedOut), 313 NewRunnableMethod(this, &InProcessBrowserTest::TimedOut),
314 kSubsequentTimeoutInMS); 314 kSubsequentTimeoutInMS);
315 315
316 MessageLoopForUI::current()->Quit(); 316 MessageLoopForUI::current()->Quit();
317 } 317 }
318 318
319 void InProcessBrowserTest::SetInitialTimeoutInMS(int timeout_value) { 319 void InProcessBrowserTest::SetInitialTimeoutInMS(int timeout_value) {
320 DCHECK_GT(timeout_value, 0); 320 DCHECK_GT(timeout_value, 0);
321 initial_timeout_ = timeout_value; 321 initial_timeout_ = timeout_value;
322 } 322 }
323
324 void InProcessBrowserTest::RunAllPendingEvents() {
325 MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
326 ui_test_utils::RunMessageLoop();
327 }
328
OLDNEW
« no previous file with comments | « chrome/test/in_process_browser_test.h ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698