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

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

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | chrome/test/unit/chrome_test_suite.h » ('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_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 CommandLine parsed_command_line; 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( 24 UITest::set_in_process_plugins(
25 parsed_command_line.HasSwitch(switches::kInProcessPlugins)); 25 parsed_command_line.HasSwitch(switches::kInProcessPlugins));
26 UITest::set_no_sandbox( 26 UITest::set_no_sandbox(
27 parsed_command_line.HasSwitch(switches::kNoSandbox)); 27 parsed_command_line.HasSwitch(switches::kNoSandbox));
28 UITest::set_full_memory_dump( 28 UITest::set_full_memory_dump(
29 parsed_command_line.HasSwitch(switches::kFullMemoryCrashReport)); 29 parsed_command_line.HasSwitch(switches::kFullMemoryCrashReport));
30 UITest::set_safe_plugins( 30 UITest::set_safe_plugins(
31 parsed_command_line.HasSwitch(switches::kSafePlugins)); 31 parsed_command_line.HasSwitch(switches::kSafePlugins));
(...skipping 26 matching lines...) Expand all
58 UITest::set_show_error_dialogs(false); 58 UITest::set_show_error_dialogs(false);
59 } 59 }
60 60
61 private: 61 private:
62 static const wchar_t kUseExistingBrowser[]; 62 static const wchar_t kUseExistingBrowser[];
63 static const wchar_t kTestTimeout[]; 63 static const wchar_t kTestTimeout[];
64 }; 64 };
65 65
66 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_ 66 #endif // CHROME_TEST_UI_UI_TEST_SUITE_H_
67 67
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | chrome/test/unit/chrome_test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698