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

Side by Side Diff: webkit/tools/test_shell/run_all_tests.cc

Issue 339024: Move console stack dumping code to a function so it can be reused in test_she... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | « base/test/test_suite.h ('k') | webkit/tools/test_shell/test_shell.gyp » ('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 13 matching lines...) Expand all
24 #include "base/scoped_nsautorelease_pool.h" 24 #include "base/scoped_nsautorelease_pool.h"
25 #include "webkit/glue/webkit_glue.h" 25 #include "webkit/glue/webkit_glue.h"
26 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 26 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
27 #include "webkit/tools/test_shell/test_shell.h" 27 #include "webkit/tools/test_shell/test_shell.h"
28 #include "webkit/tools/test_shell/test_shell_platform_delegate.h" 28 #include "webkit/tools/test_shell/test_shell_platform_delegate.h"
29 #include "webkit/tools/test_shell/test_shell_switches.h" 29 #include "webkit/tools/test_shell/test_shell_switches.h"
30 #include "webkit/tools/test_shell/test_shell_test.h" 30 #include "webkit/tools/test_shell/test_shell_test.h"
31 #include "webkit/tools/test_shell/test_shell_webkit_init.h" 31 #include "webkit/tools/test_shell/test_shell_webkit_init.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
34 const char* TestShellTest::kJavascriptDelayExitScript = 34 const char* const TestShellTest::kJavascriptDelayExitScript =
35 "<script>" 35 "<script>"
36 "window.layoutTestController.waitUntilDone();" 36 "window.layoutTestController.waitUntilDone();"
37 "window.addEventListener('load', function() {" 37 "window.addEventListener('load', function() {"
38 " var x = document.body.clientWidth;" // Force a document layout 38 " var x = document.body.clientWidth;" // Force a document layout
39 " window.layoutTestController.notifyDone();" 39 " window.layoutTestController.notifyDone();"
40 "});" 40 "});"
41 "</script>"; 41 "</script>";
42 42
43 int main(int argc, char* argv[]) { 43 int main(int argc, char* argv[]) {
44 base::ScopedNSAutoreleasePool autorelease_pool; 44 base::ScopedNSAutoreleasePool autorelease_pool;
45 base::EnableInProcessStackDumping();
45 base::EnableTerminationOnHeapCorruption(); 46 base::EnableTerminationOnHeapCorruption();
46 // Some unittests may use base::Singleton<>, thus we need to instanciate 47 // Some unittests may use base::Singleton<>, thus we need to instanciate
47 // the AtExitManager or else we will leak objects. 48 // the AtExitManager or else we will leak objects.
48 base::AtExitManager at_exit_manager; 49 base::AtExitManager at_exit_manager;
49 50
50 #if defined(OS_MACOSX) 51 #if defined(OS_MACOSX)
51 FilePath path; 52 FilePath path;
52 PathService::Get(base::DIR_EXE, &path); 53 PathService::Get(base::DIR_EXE, &path);
53 path = path.AppendASCII("TestShell.app"); 54 path = path.AppendASCII("TestShell.app");
54 mac_util::SetOverrideAppBundlePath(path); 55 mac_util::SetOverrideAppBundlePath(path);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 testing::InitGoogleTest(&argc, argv); 97 testing::InitGoogleTest(&argc, argv);
97 int result = RUN_ALL_TESTS(); 98 int result = RUN_ALL_TESTS();
98 99
99 TestShell::ShutdownTestShell(); 100 TestShell::ShutdownTestShell();
100 TestShell::CleanupLogging(); 101 TestShell::CleanupLogging();
101 102
102 CommandLine::Reset(); 103 CommandLine::Reset();
103 104
104 return result; 105 return result;
105 } 106 }
OLDNEW
« no previous file with comments | « base/test/test_suite.h ('k') | webkit/tools/test_shell/test_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698