OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 parsed_command_line.GetSwitchValueASCII(test_shell::kJavaScriptFlags); | 67 parsed_command_line.GetSwitchValueASCII(test_shell::kJavaScriptFlags); |
68 js_flags += " --expose_gc"; | 68 js_flags += " --expose_gc"; |
69 webkit_glue::SetJavaScriptFlags(js_flags); | 69 webkit_glue::SetJavaScriptFlags(js_flags); |
70 | 70 |
71 // Suppress error dialogs and do not show GP fault error box on Windows. | 71 // Suppress error dialogs and do not show GP fault error box on Windows. |
72 TestShell::InitLogging(true, false, false); | 72 TestShell::InitLogging(true, false, false); |
73 | 73 |
74 // Some of the individual tests wind up calling TestShell::WaitTestFinished | 74 // Some of the individual tests wind up calling TestShell::WaitTestFinished |
75 // which has a timeout in it. For these tests, we don't care about | 75 // which has a timeout in it. For these tests, we don't care about |
76 // a timeout so just set it to be really large. This is necessary because | 76 // a timeout so just set it to be really large. This is necessary because |
77 // we hit those timeouts under Purify and Valgrind. | 77 // we hit those timeouts under Valgrind. |
78 TestShell::SetFileTestTimeout(10 * 60 * 60 * 1000); // Ten hours. | 78 TestShell::SetFileTestTimeout(10 * 60 * 60 * 1000); // Ten hours. |
79 | 79 |
80 // Initialize test shell in layout test mode, which will let us load one | 80 // Initialize test shell in layout test mode, which will let us load one |
81 // request than automatically quit. | 81 // request than automatically quit. |
82 TestShell::InitializeTestShell(true, false); | 82 TestShell::InitializeTestShell(true, false); |
83 | 83 |
84 platform_delegate_.InitializeGUI(); | 84 platform_delegate_.InitializeGUI(); |
85 platform_delegate_.SelectUnifiedTheme(); | 85 platform_delegate_.SelectUnifiedTheme(); |
86 } | 86 } |
87 | 87 |
(...skipping 16 matching lines...) Expand all Loading... |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(TestShellTestSuite); | 105 DISALLOW_COPY_AND_ASSIGN(TestShellTestSuite); |
106 }; | 106 }; |
107 | 107 |
108 int main(int argc, char** argv) { | 108 int main(int argc, char** argv) { |
109 base::mac::ScopedNSAutoreleasePool scoped_pool; | 109 base::mac::ScopedNSAutoreleasePool scoped_pool; |
110 | 110 |
111 TestShellPlatformDelegate::PreflightArgs(&argc, &argv); | 111 TestShellPlatformDelegate::PreflightArgs(&argc, &argv); |
112 return TestShellTestSuite(argc, argv).Run(); | 112 return TestShellTestSuite(argc, argv).Run(); |
113 } | 113 } |
OLD | NEW |