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

Side by Side Diff: chrome/test/ui/ui_test.h

Issue 28347: Don't expose --single-process and --in-process-plugins for official Chrome re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/test/ui/ui_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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_UI_UI_TEST_H_ 5 #ifndef CHROME_TEST_UI_UI_TEST_H_
6 #define CHROME_TEST_UI_UI_TEST_H_ 6 #define CHROME_TEST_UI_UI_TEST_H_
7 7
8 // This file provides a common base for running UI unit tests, which operate 8 // This file provides a common base for running UI unit tests, which operate
9 // the entire browser application in a separate process for holistic 9 // the entire browser application in a separate process for holistic
10 // functional testing. 10 // functional testing.
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 base::ProcessHandle process() { return process_; } 216 base::ProcessHandle process() { return process_; }
217 217
218 public: 218 public:
219 // Get/Set a flag to run the renderer in process when running the 219 // Get/Set a flag to run the renderer in process when running the
220 // tests. 220 // tests.
221 static bool in_process_renderer() { return in_process_renderer_; } 221 static bool in_process_renderer() { return in_process_renderer_; }
222 static void set_in_process_renderer(bool value) { 222 static void set_in_process_renderer(bool value) {
223 in_process_renderer_ = value; 223 in_process_renderer_ = value;
224 } 224 }
225 225
226 // Get/Set a flag to run the plugins in the renderer process when running the
227 // tests.
228 static bool in_process_plugins() { return in_process_plugins_; }
229 static void set_in_process_plugins(bool value) {
230 in_process_plugins_ = value;
231 }
232
233 // Get/Set a flag to run the renderer outside the sandbox when running the 226 // Get/Set a flag to run the renderer outside the sandbox when running the
234 // tests 227 // tests
235 static bool no_sandbox() { return no_sandbox_; } 228 static bool no_sandbox() { return no_sandbox_; }
236 static void set_no_sandbox(bool value) { 229 static void set_no_sandbox(bool value) {
237 no_sandbox_ = value; 230 no_sandbox_ = value;
238 } 231 }
239 232
240 // Get/Set a flag to run with DCHECKs enabled in release. 233 // Get/Set a flag to run with DCHECKs enabled in release.
241 static bool enable_dcheck() { return enable_dcheck_; } 234 static bool enable_dcheck() { return enable_dcheck_; }
242 static void set_enable_dcheck(bool value) { 235 static void set_enable_dcheck(bool value) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // Default value comes from static. 414 // Default value comes from static.
422 415
423 private: 416 private:
424 #if defined(OS_WIN) 417 #if defined(OS_WIN)
425 // TODO(port): make this use base::Time instead. It would seem easy, but 418 // TODO(port): make this use base::Time instead. It would seem easy, but
426 // the code also depends on file_util::CountFilesCreatedAfter which hasn't 419 // the code also depends on file_util::CountFilesCreatedAfter which hasn't
427 // yet been made portable. 420 // yet been made portable.
428 FILETIME test_start_time_; // Time the test was started 421 FILETIME test_start_time_; // Time the test was started
429 // (so we can check for new crash dumps) 422 // (so we can check for new crash dumps)
430 #endif 423 #endif
431 static bool in_process_plugins_;
432 static bool no_sandbox_; 424 static bool no_sandbox_;
433 static bool safe_plugins_; 425 static bool safe_plugins_;
434 static bool full_memory_dump_; // If true, write full memory dump 426 static bool full_memory_dump_; // If true, write full memory dump
435 // during crash. 427 // during crash.
436 static bool show_error_dialogs_; // If true, a user is paying attention 428 static bool show_error_dialogs_; // If true, a user is paying attention
437 // to the test, so show error dialogs. 429 // to the test, so show error dialogs.
438 static bool default_use_existing_browser_; // The test connects to an already 430 static bool default_use_existing_browser_; // The test connects to an already
439 // running browser instance. 431 // running browser instance.
440 static bool dump_histograms_on_exit_; // Include histograms in log on exit. 432 static bool dump_histograms_on_exit_; // Include histograms in log on exit.
441 static bool enable_dcheck_; // Enable dchecks in release mode. 433 static bool enable_dcheck_; // Enable dchecks in release mode.
(...skipping 24 matching lines...) Expand all
466 #ifdef UNIT_TEST 458 #ifdef UNIT_TEST
467 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 459 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
468 460
469 template<typename T> 461 template<typename T>
470 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 462 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
471 return out << ptr.get(); 463 return out << ptr.get();
472 } 464 }
473 #endif // UNIT_TEST 465 #endif // UNIT_TEST
474 466
475 #endif // CHROME_TEST_UI_UI_TEST_H_ 467 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698