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

Unified Diff: base/time.h

Issue 113824: Do not monitor system power state during unit tests. (Closed)
Patch Set: Created 11 years, 7 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
« base/test_suite.h ('K') | « base/test_suite.h ('k') | base/time_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time.h
diff --git a/base/time.h b/base/time.h
index 0625bfb0e5dd17fc13d81f75ae5ee55568ae0171..beeca27e2639e75939c1b0dfa1d6dd86d895540e 100644
--- a/base/time.h
+++ b/base/time.h
@@ -228,6 +228,13 @@ class Time {
#if defined(OS_WIN)
static Time FromFileTime(FILETIME ft);
FILETIME ToFileTime() const;
+
+ // Monitor system power state and disable high resolution timer when we're
+ // on battery. See time_win.cc for more details.
+ static void StartSystemMonitorObserver();
+
+ // Enable high resolution timer unconditionally. Only for test code.
+ static void EnableHiResClockForTests();
#endif
// Converts an exploded structure representing either the local time or UTC
« base/test_suite.h ('K') | « base/test_suite.h ('k') | base/time_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698