OLD | NEW |
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 Loading... |
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 | |
OLD | NEW |