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

Side by Side Diff: webkit/tools/test_shell/run_all_tests.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 | « webkit/glue/scoped_clipboard_writer_glue.h ('k') | webkit/tools/test_shell/test_shell_main.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 // Run all of our test shell tests. This is just an entry point 5 // Run all of our test shell tests. This is just an entry point
6 // to kick off gTest's RUN_ALL_TESTS(). 6 // to kick off gTest's RUN_ALL_TESTS().
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 16 matching lines...) Expand all
27 const char* TestShellTest::kJavascriptDelayExitScript = 27 const char* TestShellTest::kJavascriptDelayExitScript =
28 "<script>" 28 "<script>"
29 "window.layoutTestController.waitUntilDone();" 29 "window.layoutTestController.waitUntilDone();"
30 "window.addEventListener('load', function() {" 30 "window.addEventListener('load', function() {"
31 " var x = document.body.clientWidth;" // Force a document layout 31 " var x = document.body.clientWidth;" // Force a document layout
32 " window.layoutTestController.notifyDone();" 32 " window.layoutTestController.notifyDone();"
33 "});" 33 "});"
34 "</script>"; 34 "</script>";
35 35
36 int main(int argc, char* argv[]) { 36 int main(int argc, char* argv[]) {
37 process_util::EnableTerminationOnHeapCorruption(); 37 base::EnableTerminationOnHeapCorruption();
38 // Some unittests may use base::Singleton<>, thus we need to instanciate 38 // Some unittests may use base::Singleton<>, thus we need to instanciate
39 // the AtExitManager or else we will leak objects. 39 // the AtExitManager or else we will leak objects.
40 base::AtExitManager at_exit_manager; 40 base::AtExitManager at_exit_manager;
41 41
42 #if defined(OS_LINUX) 42 #if defined(OS_LINUX)
43 gtk_init(&argc, &argv); 43 gtk_init(&argc, &argv);
44 #endif 44 #endif
45 45
46 #if defined(OS_POSIX) 46 #if defined(OS_POSIX)
47 CommandLine::SetArgcArgv(argc, argv); 47 CommandLine::SetArgcArgv(argc, argv);
(...skipping 30 matching lines...) Expand all
78 78
79 // Run the actual tests 79 // Run the actual tests
80 testing::InitGoogleTest(&argc, argv); 80 testing::InitGoogleTest(&argc, argv);
81 int result = RUN_ALL_TESTS(); 81 int result = RUN_ALL_TESTS();
82 82
83 TestShell::ShutdownTestShell(); 83 TestShell::ShutdownTestShell();
84 TestShell::CleanupLogging(); 84 TestShell::CleanupLogging();
85 85
86 return result; 86 return result;
87 } 87 }
OLDNEW
« no previous file with comments | « webkit/glue/scoped_clipboard_writer_glue.h ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698