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

Side by Side Diff: chrome/test/in_process_browser_test.h

Issue 6596020: Reorganize CommandLine code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 9 years, 9 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 | « base/command_line.cc ('k') | chrome/test/in_process_browser_test.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_IN_PROCESS_BROWSER_TEST_H_ 5 #ifndef CHROME_TEST_IN_PROCESS_BROWSER_TEST_H_
6 #define CHROME_TEST_IN_PROCESS_BROWSER_TEST_H_ 6 #define CHROME_TEST_IN_PROCESS_BROWSER_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // tests for example need the windows shown). 193 // tests for example need the windows shown).
194 bool show_window_; 194 bool show_window_;
195 195
196 // Whether the JavaScript can access the DOMAutomationController (a JS object 196 // Whether the JavaScript can access the DOMAutomationController (a JS object
197 // that can send messages back to the browser). 197 // that can send messages back to the browser).
198 bool dom_automation_enabled_; 198 bool dom_automation_enabled_;
199 199
200 // Whether this test requires the TabCloseableStateWatcher. 200 // Whether this test requires the TabCloseableStateWatcher.
201 bool tab_closeable_state_watcher_enabled_; 201 bool tab_closeable_state_watcher_enabled_;
202 202
203 // We muck with the global command line for this process. Keep the original
204 // so we can reset it when we're done. This matters when running the browser
205 // tests in "single process" (all tests in one process) mode.
206 scoped_ptr<CommandLine> original_command_line_;
207
208 // Saved to restore the value of RenderProcessHost::run_renderer_in_process.
209 bool original_single_process_;
210
211 // Host resolver to use during the test. 203 // Host resolver to use during the test.
212 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_; 204 scoped_refptr<net::RuleBasedHostResolverProc> host_resolver_;
213 205
214 // Temporary user data directory. Used only when a user data directory is not 206 // Temporary user data directory. Used only when a user data directory is not
215 // specified in the command line. 207 // specified in the command line.
216 ScopedTempDir temp_user_data_dir_; 208 ScopedTempDir temp_user_data_dir_;
217 209
218 #if defined(OS_CHROMEOS) 210 #if defined(OS_CHROMEOS)
219 chromeos::ScopedStubCrosEnabler stub_cros_enabler_; 211 chromeos::ScopedStubCrosEnabler stub_cros_enabler_;
220 #endif // defined(OS_CHROMEOS) 212 #endif // defined(OS_CHROMEOS)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>);\ 244 GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>);\
253 void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::RunTestOnMainThread() 245 void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::RunTestOnMainThread()
254 246
255 #define IN_PROC_BROWSER_TEST_F(test_fixture, test_name)\ 247 #define IN_PROC_BROWSER_TEST_F(test_fixture, test_name)\
256 IN_PROC_BROWSER_TEST_(test_fixture, test_name, test_fixture,\ 248 IN_PROC_BROWSER_TEST_(test_fixture, test_name, test_fixture,\
257 ::testing::internal::GetTypeId<test_fixture>()) 249 ::testing::internal::GetTypeId<test_fixture>())
258 250
259 #endif // defined(ALLOW_IN_PROC_BROWSER_TEST) 251 #endif // defined(ALLOW_IN_PROC_BROWSER_TEST)
260 252
261 #endif // CHROME_TEST_IN_PROCESS_BROWSER_TEST_H_ 253 #endif // CHROME_TEST_IN_PROCESS_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « base/command_line.cc ('k') | chrome/test/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698