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

Unified Diff: third_party/WebKit/Source/web/tests/TextFinderTest.cpp

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CachingCorrectnessTest Created 5 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
« no previous file with comments | « third_party/WebKit/Source/web/WebKit.cpp ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/TextFinderTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
index b286d540ec93d2666d2a38814349249e80eaece1..0d657a36ed7ab2ebf1c6a7ec497b3b7271f8276c 100644
--- a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
+++ b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
@@ -414,7 +414,7 @@ protected:
// Check that the proxy wasn't installed yet.
ASSERT_NE(Platform::current(), this);
m_fallbackPlatform = Platform::current();
- m_timeCounter = m_fallbackPlatform->currentTime();
+ m_timeCounter = m_fallbackPlatform->currentTimeSeconds();
Platform::initialize(this);
ASSERT_EQ(Platform::current(), this);
}
@@ -436,7 +436,7 @@ protected:
}
// From blink::Platform:
- double currentTime() override
+ double currentTimeSeconds() override
{
return ++m_timeCounter;
}
@@ -453,9 +453,9 @@ protected:
}
// These two methods allow timers to work correctly.
- double monotonicallyIncreasingTime() override
+ double monotonicallyIncreasingTimeSeconds() override
{
- return ensureFallback().monotonicallyIncreasingTime();
+ return ensureFallback().monotonicallyIncreasingTimeSeconds();
}
WebThread* currentThread() override { return ensureFallback().currentThread(); }
« no previous file with comments | « third_party/WebKit/Source/web/WebKit.cpp ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698