| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/base/test_launcher_utils.h" | 5 #include "chrome/test/base/test_launcher_utils.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/environment.h" | 8 #include "base/environment.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Enable warning level logging so that we can see when bad stuff happens. | 34 // Enable warning level logging so that we can see when bad stuff happens. |
| 35 command_line->AppendSwitch(switches::kEnableLogging); | 35 command_line->AppendSwitch(switches::kEnableLogging); |
| 36 command_line->AppendSwitchASCII(switches::kLoggingLevel, "1"); // warning | 36 command_line->AppendSwitchASCII(switches::kLoggingLevel, "1"); // warning |
| 37 | 37 |
| 38 // Disable safebrowsing autoupdate. | 38 // Disable safebrowsing autoupdate. |
| 39 command_line->AppendSwitch(switches::kSbDisableAutoUpdate); | 39 command_line->AppendSwitch(switches::kSbDisableAutoUpdate); |
| 40 | 40 |
| 41 // Don't install default apps. | 41 // Don't install default apps. |
| 42 command_line->AppendSwitch(switches::kDisableDefaultApps); | 42 command_line->AppendSwitch(switches::kDisableDefaultApps); |
| 43 | 43 |
| 44 // Don't collect GPU info, load GPU blacklist, or schedule a GPU blacklist |
| 45 // auto-update. |
| 46 command_line->AppendSwitch(switches::kSkipGpuDataLoading); |
| 47 |
| 44 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 48 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 45 // Don't use the native password stores on Linux since they may | 49 // Don't use the native password stores on Linux since they may |
| 46 // prompt for additional UI during tests and cause test failures or | 50 // prompt for additional UI during tests and cause test failures or |
| 47 // timeouts. Win, Mac and ChromeOS don't look at the kPasswordStore | 51 // timeouts. Win, Mac and ChromeOS don't look at the kPasswordStore |
| 48 // switch. | 52 // switch. |
| 49 if (!command_line->HasSwitch(switches::kPasswordStore)) | 53 if (!command_line->HasSwitch(switches::kPasswordStore)) |
| 50 command_line->AppendSwitchASCII(switches::kPasswordStore, "basic"); | 54 command_line->AppendSwitchASCII(switches::kPasswordStore, "basic"); |
| 51 #endif | 55 #endif |
| 52 | 56 |
| 53 #if defined(OS_MACOSX) | 57 #if defined(OS_MACOSX) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const std::string& implementation_name) { | 91 const std::string& implementation_name) { |
| 88 if (command_line->HasSwitch(switches::kUseGL)) | 92 if (command_line->HasSwitch(switches::kUseGL)) |
| 89 return false; | 93 return false; |
| 90 | 94 |
| 91 command_line->AppendSwitchASCII(switches::kUseGL, implementation_name); | 95 command_line->AppendSwitchASCII(switches::kUseGL, implementation_name); |
| 92 | 96 |
| 93 return true; | 97 return true; |
| 94 } | 98 } |
| 95 | 99 |
| 96 } // namespace test_launcher_utils | 100 } // namespace test_launcher_utils |
| OLD | NEW |