| 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 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 class RunLoop; | 12 class RunLoop; |
| 13 } | 13 } |
| 14 | 14 |
| 15 // A collections of functions designed for use with content_browsertests and | 15 // A collections of functions designed for use with content_browsertests and |
| 16 // browser_tests. | 16 // browser_tests. |
| 17 // TO BE CLEAR: any function here must work against both binaries. If it only | 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. | 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 | 19 // If it only works with content_browsertests, it should be in |
| 20 // content\test\content_browser_test_utils.h. | 20 // content\test\content_browser_test_utils.h. |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 | 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 | 24 } // namespace content |
| 32 | 25 |
| 33 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 26 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| OLD | NEW |