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 CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ |
6 #define CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ | 6 #define CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Quits all open browsers and waits until there are no more browsers. | 181 // Quits all open browsers and waits until there are no more browsers. |
182 void QuitBrowsers(); | 182 void QuitBrowsers(); |
183 | 183 |
184 // Prepare command line that will be used to launch the child browser process | 184 // Prepare command line that will be used to launch the child browser process |
185 // with an in-process test. | 185 // with an in-process test. |
186 void PrepareTestCommandLine(CommandLine* command_line); | 186 void PrepareTestCommandLine(CommandLine* command_line); |
187 | 187 |
188 // Browser created from CreateBrowser. | 188 // Browser created from CreateBrowser. |
189 Browser* browser_; | 189 Browser* browser_; |
190 | 190 |
191 // ContentRendererClient when running in single-process mode. | |
192 scoped_ptr<content::ContentRendererClient> single_process_renderer_client_; | |
193 | |
194 // Host resolver to use during the test. | 191 // Host resolver to use during the test. |
195 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_; | 192 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_; |
196 | 193 |
197 // Temporary user data directory. Used only when a user data directory is not | 194 // Temporary user data directory. Used only when a user data directory is not |
198 // specified in the command line. | 195 // specified in the command line. |
199 base::ScopedTempDir temp_user_data_dir_; | 196 base::ScopedTempDir temp_user_data_dir_; |
200 | 197 |
201 #if defined(OS_CHROMEOS) | 198 #if defined(OS_CHROMEOS) |
202 chromeos::ScopedStubCrosEnabler stub_cros_enabler_; | 199 chromeos::ScopedStubCrosEnabler stub_cros_enabler_; |
203 #endif // defined(OS_CHROMEOS) | 200 #endif // defined(OS_CHROMEOS) |
204 | 201 |
205 #if defined(OS_MACOSX) | 202 #if defined(OS_MACOSX) |
206 base::mac::ScopedNSAutoreleasePool* autorelease_pool_; | 203 base::mac::ScopedNSAutoreleasePool* autorelease_pool_; |
207 #endif // OS_MACOSX | 204 #endif // OS_MACOSX |
208 }; | 205 }; |
209 | 206 |
210 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ | 207 #endif // CHROME_TEST_BASE_IN_PROCESS_BROWSER_TEST_H_ |
OLD | NEW |