| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/test/ui/ui_test_suite.h" | 5 #include "chrome/test/ui/ui_test_suite.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 void UITestSuite::Initialize() { | 30 void UITestSuite::Initialize() { |
| 31 ChromeTestSuite::Initialize(); | 31 ChromeTestSuite::Initialize(); |
| 32 | 32 |
| 33 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); | 33 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); |
| 34 ProxyLauncher::set_in_process_renderer( | 34 ProxyLauncher::set_in_process_renderer( |
| 35 parsed_command_line.HasSwitch(switches::kSingleProcess)); | 35 parsed_command_line.HasSwitch(switches::kSingleProcess)); |
| 36 ProxyLauncher::set_no_sandbox( | 36 ProxyLauncher::set_no_sandbox( |
| 37 parsed_command_line.HasSwitch(switches::kNoSandbox)); | 37 parsed_command_line.HasSwitch(switches::kNoSandbox)); |
| 38 ProxyLauncher::set_full_memory_dump( | 38 ProxyLauncher::set_full_memory_dump( |
| 39 parsed_command_line.HasSwitch(switches::kFullMemoryCrashReport)); | 39 parsed_command_line.HasSwitch(switches::kFullMemoryCrashReport)); |
| 40 ProxyLauncher::set_safe_plugins( | |
| 41 parsed_command_line.HasSwitch(switches::kSafePlugins)); | |
| 42 ProxyLauncher::set_dump_histograms_on_exit( | 40 ProxyLauncher::set_dump_histograms_on_exit( |
| 43 parsed_command_line.HasSwitch(switches::kDumpHistogramsOnExit)); | 41 parsed_command_line.HasSwitch(switches::kDumpHistogramsOnExit)); |
| 44 ProxyLauncher::set_enable_dcheck( | 42 ProxyLauncher::set_enable_dcheck( |
| 45 parsed_command_line.HasSwitch(switches::kEnableDCHECK)); | 43 parsed_command_line.HasSwitch(switches::kEnableDCHECK)); |
| 46 ProxyLauncher::set_silent_dump_on_dcheck( | 44 ProxyLauncher::set_silent_dump_on_dcheck( |
| 47 parsed_command_line.HasSwitch(switches::kSilentDumpOnDCHECK)); | 45 parsed_command_line.HasSwitch(switches::kSilentDumpOnDCHECK)); |
| 48 ProxyLauncher::set_disable_breakpad( | 46 ProxyLauncher::set_disable_breakpad( |
| 49 parsed_command_line.HasSwitch(switches::kDisableBreakpad)); | 47 parsed_command_line.HasSwitch(switches::kDisableBreakpad)); |
| 50 | 48 |
| 51 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 if (!base::LaunchApp(crash_service.value(), false, false, | 120 if (!base::LaunchApp(crash_service.value(), false, false, |
| 123 &crash_service_)) { | 121 &crash_service_)) { |
| 124 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \ | 122 printf("Couldn't start crash_service.exe, so this ui_test run won't tell " \ |
| 125 "you if any test crashes!\n"); | 123 "you if any test crashes!\n"); |
| 126 return; | 124 return; |
| 127 } | 125 } |
| 128 | 126 |
| 129 printf("Started crash_service.exe so you know if a test crashes!\n"); | 127 printf("Started crash_service.exe so you know if a test crashes!\n"); |
| 130 } | 128 } |
| 131 #endif | 129 #endif |
| OLD | NEW |