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

Unified Diff: webkit/tools/test_shell/run_all_tests.cc

Issue 1606: hodgepodge for test_shell.cc (Closed)
Patch Set: update some comments Created 12 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/SConscript ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « webkit/tools/test_shell/SConscript ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698