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_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 Loading... |
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_ |
OLD | NEW |