| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Initialize test shell in layout test mode, which will let us load one | 70 // Initialize test shell in layout test mode, which will let us load one |
| 71 // request than automatically quit. | 71 // request than automatically quit. |
| 72 TestShell::InitializeTestShell(true); | 72 TestShell::InitializeTestShell(true); |
| 73 | 73 |
| 74 // Initialize WebKit for this scope. | 74 // Initialize WebKit for this scope. |
| 75 TestShellWebKitInit test_shell_webkit_init(true); | 75 TestShellWebKitInit test_shell_webkit_init(true); |
| 76 | 76 |
| 77 // Allocate a message loop for this thread. Although it is not used | 77 // Allocate a message loop for this thread. Although it is not used |
| 78 // directly, its constructor sets up some necessary state. | 78 // directly, its constructor sets up some necessary state. |
| 79 MessageLoop main_message_loop; | 79 MessageLoopForUI main_message_loop; |
| 80 | 80 |
| 81 // Load ICU data tables | 81 // Load ICU data tables |
| 82 icu_util::Initialize(); | 82 icu_util::Initialize(); |
| 83 | 83 |
| 84 platform.InitializeGUI(); | 84 platform.InitializeGUI(); |
| 85 platform.SelectUnifiedTheme(); | 85 platform.SelectUnifiedTheme(); |
| 86 | 86 |
| 87 // Run the actual tests | 87 // Run the actual tests |
| 88 testing::InitGoogleTest(&argc, argv); | 88 testing::InitGoogleTest(&argc, argv); |
| 89 int result = RUN_ALL_TESTS(); | 89 int result = RUN_ALL_TESTS(); |
| 90 | 90 |
| 91 TestShell::ShutdownTestShell(); | 91 TestShell::ShutdownTestShell(); |
| 92 TestShell::CleanupLogging(); | 92 TestShell::CleanupLogging(); |
| 93 | 93 |
| 94 CommandLine::Terminate(); | 94 CommandLine::Terminate(); |
| 95 | 95 |
| 96 return result; | 96 return result; |
| 97 } | 97 } |
| OLD | NEW |