OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 7 |
| 8 #include "base/callback_forward.h" |
| 9 #include "googleurl/src/gurl.h" |
| 10 |
| 11 namespace base { |
| 12 class RunLoop; |
| 13 } |
| 14 |
| 15 // A collections of functions designed for use with content_browsertests and |
| 16 // browser_tests. |
| 17 // TO BE CLEAR: any function here must work against both binaries. If it only |
| 18 // works with browser_tests, it should be in chrome\test\base\ui_test_utils.h. |
| 19 // If it only works with content_browsertests, it should be in |
| 20 // content\test\content_browser_test_utils.h. |
| 21 |
| 22 namespace content { |
| 23 |
| 24 // Variant of RunMessageLoop that takes RunLoop. |
| 25 void RunThisRunLoop(base::RunLoop* run_loop); |
| 26 |
| 27 // Get task to quit the given RunLoop. It allows a few generations of pending |
| 28 // tasks to run as opposed to run_loop->QuitClosure(). |
| 29 base::Closure GetQuitTaskForRunLoop(base::RunLoop* run_loop); |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
OLD | NEW |