| Index: webkit/tools/test_shell/run_all_tests.cc
|
| diff --git a/webkit/tools/test_shell/run_all_tests.cc b/webkit/tools/test_shell/run_all_tests.cc
|
| index 1da6f786cdb0e78b1fca6c6fb4f28fcb18f87612..e718fdf9a0fcbe16174db8ec30ad605577a5c306 100644
|
| --- a/webkit/tools/test_shell/run_all_tests.cc
|
| +++ b/webkit/tools/test_shell/run_all_tests.cc
|
| @@ -5,8 +5,10 @@
|
| // Run all of our test shell tests. This is just an entry point
|
| // to kick off gTest's RUN_ALL_TESTS().
|
|
|
| +#if defined(OS_WIN)
|
| #include <windows.h>
|
| #include <commctrl.h>
|
| +#endif
|
|
|
| #include "base/at_exit.h"
|
| #include "base/icu_util.h"
|
| @@ -30,6 +32,7 @@ int main(int argc, char* argv[]) {
|
| // the AtExitManager or else we will leak objects.
|
| base::AtExitManager at_exit_manager;
|
|
|
| +#if defined(OS_WIN)
|
| TestShell::InitLogging(true); // suppress error dialogs
|
|
|
| // Initialize test shell in non-interactive mode, which will let us load one
|
| @@ -41,6 +44,7 @@ int main(int argc, char* argv[]) {
|
| // so just set it to be a really large number. This is necessary because
|
| // when running under Purify, we were hitting those timeouts.
|
| TestShell::SetFileTestTimeout(USER_TIMER_MAXIMUM);
|
| +#endif
|
|
|
| // Allocate a message loop for this thread. Although it is not used
|
| // directly, its constructor sets up some necessary state.
|
| @@ -49,18 +53,23 @@ int main(int argc, char* argv[]) {
|
| // Load ICU data tables
|
| icu_util::Initialize();
|
|
|
| +#if defined(OS_WIN)
|
| INITCOMMONCONTROLSEX InitCtrlEx;
|
|
|
| InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
| InitCtrlEx.dwICC = ICC_STANDARD_CLASSES;
|
| InitCommonControlsEx(&InitCtrlEx);
|
| +#endif
|
|
|
| // Run the actual tests
|
| testing::InitGoogleTest(&argc, argv);
|
| int result = RUN_ALL_TESTS();
|
|
|
| +#if defined(OS_WIN)
|
| TestShell::ShutdownTestShell();
|
| TestShell::CleanupLogging();
|
| +#endif
|
| +
|
| return result;
|
| }
|
|
|
|
|