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

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

Issue 1936853002: Assert event timestamp to be monotonic and not from future Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to histogram 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.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
index bd2e13b3454d6bae1e29e8fef232f7757c11b631..524869a2a98310a25ab59f3e0e82ce30614ced4a 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
@@ -164,12 +164,12 @@ TestingPlatformSupportWithMockScheduler::TestingPlatformSupportWithMockScheduler
// Set the work batch size to one so RunPendingTasks behaves as expected.
m_scheduler->GetSchedulerHelperForTesting()->SetWorkBatchSizeForTesting(1);
- WTF::setTimeFunctionsForTesting(getTestTime);
+ WTF::setMonotonicallyIncreasingTimeFunctionForTesting(getTestTime);
}
TestingPlatformSupportWithMockScheduler::~TestingPlatformSupportWithMockScheduler()
{
- WTF::setTimeFunctionsForTesting(nullptr);
+ WTF::setMonotonicallyIncreasingTimeFunctionForTesting(nullptr);
m_scheduler->Shutdown();
}
@@ -244,7 +244,8 @@ ScopedUnittestsEnvironmentSetup::ScopedUnittestsEnvironmentSetup(int argc, char*
Platform::setCurrentPlatformForTesting(m_platform.get());
WTF::Partitions::initialize(nullptr);
- WTF::setTimeFunctionsForTesting(dummyCurrentTime);
+ WTF::setMonotonicallyIncreasingTimeFunctionForTesting(dummyCurrentTime);
+ WTF::setCurrentTimeFunctionForTesting(dummyCurrentTime);
WTF::initialize(nullptr);
m_compositorSupport = wrapUnique(new cc_blink::WebCompositorSupportImpl);
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformEvent.h ('k') | third_party/WebKit/Source/web/WebTestingSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698