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_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // This function is meant only for classes that directly derive from this | 108 // This function is meant only for classes that directly derive from this |
109 // class to construct the test server in their constructor. They might need to | 109 // class to construct the test server in their constructor. They might need to |
110 // call this after setting up the paths. Actual test cases should never call | 110 // call this after setting up the paths. Actual test cases should never call |
111 // this. | 111 // this. |
112 // |test_server_base| is the path, relative to src, to give to the test HTTP | 112 // |test_server_base| is the path, relative to src, to give to the test HTTP |
113 // server. | 113 // server. |
114 void CreateTestServer(const base::FilePath& test_server_base); | 114 void CreateTestServer(const base::FilePath& test_server_base); |
115 | 115 |
116 // When the test is running in --single-process mode, runs the given task on | 116 // When the test is running in --single-process mode, runs the given task on |
117 // the in-process renderer thread. A nested message loop is run until it | 117 // the in-process renderer thread. A nested run loop is run until it |
118 // returns. | 118 // returns. |
119 void PostTaskToInProcessRendererAndWait(const base::Closure& task); | 119 void PostTaskToInProcessRendererAndWait(const base::Closure& task); |
120 | 120 |
121 // Call this before SetUp() to cause the test to generate pixel output. | 121 // Call this before SetUp() to cause the test to generate pixel output. |
122 void EnablePixelOutput(); | 122 void EnablePixelOutput(); |
123 | 123 |
124 // Call this before SetUp() to not use GL, but use software compositing | 124 // Call this before SetUp() to not use GL, but use software compositing |
125 // instead. | 125 // instead. |
126 void UseSoftwareCompositing(); | 126 void UseSoftwareCompositing(); |
127 | 127 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 bool disable_io_checks_; | 169 bool disable_io_checks_; |
170 | 170 |
171 #if defined(OS_POSIX) | 171 #if defined(OS_POSIX) |
172 bool handle_sigterm_; | 172 bool handle_sigterm_; |
173 #endif | 173 #endif |
174 }; | 174 }; |
175 | 175 |
176 } // namespace content | 176 } // namespace content |
177 | 177 |
178 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ | 178 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
OLD | NEW |