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

Side by Side Diff: content/public/test/browser_test_utils.h

Issue 10807047: Create content\public\test\test_utils.h to hold common test classes that are used by unit and brows… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/test_utils.h » ('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) 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_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698