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

Side by Side Diff: chrome/test/ui/ui_test_suite.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/test/ui/ui_test.cc ('k') | no next file » | 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_SUITE_H_ 5 #ifndef CHROME_TEST_UI_UI_TEST_SUITE_H_
6 #define CHROME_TEST_UI_UI_TEST_SUITE_H_ 6 #define CHROME_TEST_UI_UI_TEST_SUITE_H_
7 7
8 #include "chrome/test/ui/ui_test.h" 8 #include "chrome/test/ui/ui_test.h"
9 #include "chrome/test/unit/chrome_test_suite.h" 9 #include "chrome/test/unit/chrome_test_suite.h"
10 10
11 class UITestSuite : public ChromeTestSuite { 11 class UITestSuite : public ChromeTestSuite {
12 public: 12 public:
13 UITestSuite(int argc, char** argv) : ChromeTestSuite(argc, argv) { 13 UITestSuite(int argc, char** argv) : ChromeTestSuite(argc, argv) {
14 } 14 }
15 15
16 protected: 16 protected:
17 17
18 virtual void Initialize() { 18 virtual void Initialize() {
19 ChromeTestSuite::Initialize(); 19 ChromeTestSuite::Initialize();
20 20
21 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); 21 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
22 UITest::set_in_process_renderer( 22 UITest::set_in_process_renderer(
23 parsed_command_line.HasSwitch(switches::kSingleProcess)); 23 parsed_command_line.HasSwitch(switches::kSingleProcess));
24 UITest::set_in_process_plugins(
25 parsed_command_line.HasSwitch(switches::kInProcessPlugins));
26 UITest::set_no_sandbox( 24 UITest::set_no_sandbox(
27 parsed_command_line.HasSwitch(switches::kNoSandbox)); 25 parsed_command_line.HasSwitch(switches::kNoSandbox));
28 UITest::set_full_memory_dump( 26 UITest::set_full_memory_dump(
29 parsed_command_line.HasSwitch(switches::kFullMemoryCrashReport)); 27 parsed_command_line.HasSwitch(switches::kFullMemoryCrashReport));
30 UITest::set_safe_plugins( 28 UITest::set_safe_plugins(
31 parsed_command_line.HasSwitch(switches::kSafePlugins)); 29 parsed_command_line.HasSwitch(switches::kSafePlugins));
32 UITest::set_use_existing_browser( 30 UITest::set_use_existing_browser(
33 parsed_command_line.HasSwitch(UITestSuite::kUseExistingBrowser)); 31 parsed_command_line.HasSwitch(UITestSuite::kUseExistingBrowser));
34 UITest::set_dump_histograms_on_exit( 32 UITest::set_dump_histograms_on_exit(
35 parsed_command_line.HasSwitch(switches::kDumpHistogramsOnExit)); 33 parsed_command_line.HasSwitch(switches::kDumpHistogramsOnExit));
(...skipping 26 matching lines...) Expand all
62 #endif 60 #endif
63 UITest::set_show_error_dialogs(false); 61 UITest::set_show_error_dialogs(false);
64 } 62 }
65 63
66 private: 64 private:
67 static const wchar_t kUseExistingBrowser[]; 65 static const wchar_t kUseExistingBrowser[];
68 static const wchar_t kTestTimeout[]; 66 static const wchar_t kTestTimeout[];
69 }; 67 };
70 68
71 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_ 69 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698