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

Unified Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 2433323003: Fix TestingPlatformSupportWithMockScheduler::runForPeriodSeconds (Closed)
Patch Set: Fix compile Created 4 years, 2 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
Index: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
index 5cf5b13c01c9830398bd5f870edd2d071af66729..8ddb6c6ba06909d82161a053f5614e82b9c5b902 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
@@ -171,8 +171,9 @@ class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport {
// instead.
void runUntilIdle();
- // Runs for |seconds|. Note we use a testing clock rather than the wall clock
- // here.
+ // Runs for |seconds| the testing clock is advanced by |seconds|. Note real
+ // time elapsed will typically much less than |seconds| because delays between
+ // timers are fast forwarded.
void runForPeriodSeconds(double seconds);
// Advances |m_clock| by |seconds|.

Powered by Google App Engine
This is Rietveld 408576698