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

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

Issue 10803026: Get content_browsertest working. I've added a simple test for now, and will convert the tests in sr… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get it working on mac + linux, fix unittests crash, and fix unittest link error and add missing dep… 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/public/test/browser_test.h ('k') | content/public/test/test_launcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/public/test/browser_test.h ('k') | content/public/test/test_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698