| 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "base/process_util.h" |
| 6 | 7 |
| 7 #include "base/test_suite.h" | 8 #include "base/test_suite.h" |
| 8 | 9 |
| 9 // TODO(port): This is not Windows-specific, but needs to be ported. | 10 // TODO(port): This is not Windows-specific, but needs to be ported. |
| 10 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 11 #include "chrome/test/unit/chrome_test_suite.h" | 12 #include "chrome/test/unit/chrome_test_suite.h" |
| 12 #endif | 13 #endif |
| 13 | 14 |
| 14 int main(int argc, char **argv) { | 15 int main(int argc, char **argv) { |
| 16 process_util::EnableTerminationOnHeapCorruption(); |
| 15 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 16 // TODO(port): This is not Windows-specific, but needs to be ported. | 18 // TODO(port): This is not Windows-specific, but needs to be ported. |
| 17 return ChromeTestSuite(argc, argv).Run(); | 19 return ChromeTestSuite(argc, argv).Run(); |
| 18 #else | 20 #else |
| 19 return TestSuite(argc, argv).Run(); | 21 return TestSuite(argc, argv).Run(); |
| 20 #endif | 22 #endif |
| 21 } | 23 } |
| 22 | |
| OLD | NEW |