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_PUBLIC_TEST_CONTENT_BROWSER_TEST_UTILS_H_ |
6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_UTILS_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class FilePath; | 13 class FilePath; |
14 } | 14 } |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 class Rect; | 17 class Rect; |
18 } | 18 } |
19 | 19 |
20 // A collections of functions designed for use with content_browsertests. | 20 // A collections of functions designed for use with content_shell based browser |
| 21 // tests. |
21 // Note: if a function here also works with browser_tests, it should be in | 22 // Note: if a function here also works with browser_tests, it should be in |
22 // content\public\test\browser_test_utils.h | 23 // content\public\test\browser_test_utils.h |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 | 26 |
26 class MessageLoopRunner; | 27 class MessageLoopRunner; |
27 class Shell; | 28 class Shell; |
28 | 29 |
29 // Generate the file path for testing a particular test. | 30 // Generate the file path for testing a particular test. |
30 // The file for the tests is all located in | 31 // The file for the tests is all located in |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(ShellAddedObserver); | 72 DISALLOW_COPY_AND_ASSIGN(ShellAddedObserver); |
72 }; | 73 }; |
73 | 74 |
74 #if defined OS_MACOSX | 75 #if defined OS_MACOSX |
75 void SetWindowBounds(gfx::NativeWindow window, const gfx::Rect& bounds); | 76 void SetWindowBounds(gfx::NativeWindow window, const gfx::Rect& bounds); |
76 #endif | 77 #endif |
77 | 78 |
78 } // namespace content | 79 } // namespace content |
79 | 80 |
80 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_H_ | 81 #endif // CONTENT_PUBLIC_TEST_CONTENT_BROWSER_TEST_UTILS_H_ |
OLD | NEW |