| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |