| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/test/test_suite.h" | 11 #include "base/test/test_suite.h" |
| 12 #include "chrome/test/test_launcher/test_runner.h" | 12 #include "chrome/test/test_launcher/test_runner.h" |
| 13 #include "chrome/test/unit/chrome_test_suite.h" | 13 #include "chrome/test/unit/chrome_test_suite.h" |
| 14 | 14 |
| 15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 16 #include "base/base_switches.h" | 16 #include "base/base_switches.h" |
| 17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
| 18 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/sandbox_policy.h" | 19 #include "chrome/common/sandbox_policy.h" |
| 19 #include "sandbox/src/dep.h" | 20 #include "sandbox/src/dep.h" |
| 20 #include "sandbox/src/sandbox_factory.h" | 21 #include "sandbox/src/sandbox_factory.h" |
| 21 #include "sandbox/src/sandbox_types.h" | 22 #include "sandbox/src/sandbox_types.h" |
| 22 | 23 |
| 23 // The entry point signature of chrome.dll. | 24 // The entry point signature of chrome.dll. |
| 24 typedef int (*DLL_MAIN)(HINSTANCE, sandbox::SandboxInterfaceInfo*, wchar_t*); | 25 typedef int (*DLL_MAIN)(HINSTANCE, sandbox::SandboxInterfaceInfo*, wchar_t*); |
| 25 #endif | 26 #endif |
| 26 | 27 |
| 27 // This version of the test launcher forks a new process for each test it runs. | 28 // This version of the test launcher forks a new process for each test it runs. |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 exit_code = 1; | 229 exit_code = 1; |
| 229 break; | 230 break; |
| 230 } | 231 } |
| 231 | 232 |
| 232 // Special value "-1" means "repeat indefinitely". | 233 // Special value "-1" means "repeat indefinitely". |
| 233 if (cycles != -1) | 234 if (cycles != -1) |
| 234 cycles--; | 235 cycles--; |
| 235 } | 236 } |
| 236 return exit_code; | 237 return exit_code; |
| 237 } | 238 } |
| OLD | NEW |