OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |