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

Side by Side Diff: chrome/test/perf/perftests.cc

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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/perf/mem_usage.cc ('k') | chrome/test/reliability/run_all_unittests.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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/perftimer.h" 6 #include "base/perftimer.h"
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "chrome/common/chrome_paths.cc" 8 #include "chrome/common/chrome_paths.cc"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 // TODO(darin): share code with base/run_all_perftests.cc 11 // TODO(darin): share code with base/run_all_perftests.cc
12 12
13 int main(int argc, char **argv) { 13 int main(int argc, char **argv) {
14 process_util::EnableTerminationOnHeapCorruption(); 14 base::EnableTerminationOnHeapCorruption();
15 chrome::RegisterPathProvider(); 15 chrome::RegisterPathProvider();
16 MessageLoop main_message_loop; 16 MessageLoop main_message_loop;
17 17
18 testing::InitGoogleTest(&argc, argv); 18 testing::InitGoogleTest(&argc, argv);
19 19
20 const char log_file_switch[] = "-o"; 20 const char log_file_switch[] = "-o";
21 const char* log_filename = NULL; 21 const char* log_filename = NULL;
22 for (int i = 1; i < argc; i++) { 22 for (int i = 1; i < argc; i++) {
23 if (strcmp(argv[i], log_file_switch) == 0) { 23 if (strcmp(argv[i], log_file_switch) == 0) {
24 // found the switch for the log file, use the next arg 24 // found the switch for the log file, use the next arg
(...skipping 21 matching lines...) Expand all
46 if (!IsDebuggerPresent()) { 46 if (!IsDebuggerPresent()) {
47 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); 47 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
48 } 48 }
49 49
50 int result = RUN_ALL_TESTS(); 50 int result = RUN_ALL_TESTS();
51 51
52 FinalizePerfLog(); 52 FinalizePerfLog();
53 return result; 53 return result;
54 } 54 }
55 55
OLDNEW
« no previous file with comments | « chrome/test/perf/mem_usage.cc ('k') | chrome/test/reliability/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698