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

Unified Diff: base/test/test_suite.h

Issue 431008: Make SystemMonitor not a Singleton and move it out of base (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix ChromeFrame build Created 11 years, 1 month 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
Index: base/test/test_suite.h
diff --git a/base/test/test_suite.h b/base/test/test_suite.h
index 44e851117e31b4ba79e47d6a1b40b6e837806856..2566b1aff88b5374dcf741da4e9bc308fba93c27 100644
--- a/base/test/test_suite.h
+++ b/base/test/test_suite.h
@@ -182,10 +182,10 @@ class TestSuite {
CHECK(base::EnableInProcessStackDumping());
#if defined(OS_WIN)
- // For unit tests we turn on the high resolution timer and disable
- // base::Time's use of SystemMonitor. Tests create and destroy the message
- // loop, which causes a crash with SystemMonitor (http://crbug.com/12187).
- base::Time::EnableHiResClockForTests();
+ // Make sure we run with high resolution timer to minimize differences
+ // between production code and test code.
+ bool result = base::Time::UseHighResolutionTimer(true);
+ CHECK(result);
// In some cases, we do not want to see standard error dialogs.
if (!IsDebuggerPresent() &&
« no previous file with comments | « base/base.gyp ('k') | base/time.h » ('j') | chrome/browser/session_history_uitest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698