Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: chrome/test/unit/run_all_unittests.cc

Issue 3105: Enforce Terminate on Heap Corruption in most of our executable on Windows XP ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/run_all_unittests.cc ('k') | chrome/tools/convert_dict/convert_dict.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « chrome/test/ui/run_all_unittests.cc ('k') | chrome/tools/convert_dict/convert_dict.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698