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

Side by Side Diff: content/test/content_browser_test_utils.h

Issue 10831023: Move over a bunch of tests from browser_tests to content_browsertests. (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/test/content_browser_test.cc ('k') | content/test/content_browser_test_utils.cc » ('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_TEST_CONTENT_BROWSER_TEST_UTILS_H_ 5 #ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_H_
6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_H_ 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_H_
7 7
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 20 matching lines...) Expand all
31 // Generate the URL for testing a particular test. 31 // Generate the URL for testing a particular test.
32 // HTML for the tests is all located in 32 // HTML for the tests is all located in
33 // test_root_directory/dir/<file> 33 // test_root_directory/dir/<file>
34 // The returned path is GURL format. 34 // The returned path is GURL format.
35 GURL GetTestUrl(const char* dir, const char* file); 35 GURL GetTestUrl(const char* dir, const char* file);
36 36
37 // Navigates the selected tab of |window| to |url|, blocking until the 37 // Navigates the selected tab of |window| to |url|, blocking until the
38 // navigation finishes. 38 // navigation finishes.
39 void NavigateToURL(Shell* window, const GURL& url); 39 void NavigateToURL(Shell* window, const GURL& url);
40 40
41 // Navigates the selected tab of |window| to |url|, blocking until the given
42 // number of navigations finishes.
43 void NavigateToURLBlockUntilNavigationsComplete(Shell* window,
44 const GURL& url,
45 int number_of_navigations);
46
41 // Wait until an application modal dialog is requested. 47 // Wait until an application modal dialog is requested.
42 void WaitForAppModalDialog(Shell* window); 48 void WaitForAppModalDialog(Shell* window);
43 49
44 #if defined OS_MACOSX 50 #if defined OS_MACOSX
45 void SetWindowBounds(gfx::NativeWindow window, const gfx::Rect& bounds); 51 void SetWindowBounds(gfx::NativeWindow window, const gfx::Rect& bounds);
46 #endif 52 #endif
47 53
48 } // namespace content 54 } // namespace content
49 55
50 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_H_ 56 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/test/content_browser_test.cc ('k') | content/test/content_browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698