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