| 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);
|
|
|