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

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

Issue 1550563002: Blink Platform: Remove time functions from Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merrrge agaaain. Created 4 years, 10 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/RunAllTests.cpp
diff --git a/third_party/WebKit/Source/platform/testing/RunAllTests.cpp b/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
index cd48b5ea946cf81379038edb874997ae0d380f2f..605fbef0ac1e944b1c9f3397ffa0dd1d9103e40f 100644
--- a/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
+++ b/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
@@ -33,6 +33,7 @@
#include "platform/heap/Heap.h"
#include "platform/testing/TestingPlatformSupport.h"
#include "wtf/CryptographicallyRandomNumber.h"
+#include "wtf/CurrentTime.h"
#include "wtf/MainThread.h"
#include "wtf/Partitions.h"
#include "wtf/WTF.h"
@@ -44,7 +45,7 @@
#include <cc/blink/web_compositor_support_impl.h>
#include <string.h>
-static double CurrentTime()
+static double dummyCurrentTime()
{
return 0.0;
}
@@ -61,8 +62,8 @@ int main(int argc, char** argv)
base::CommandLine::Init(argc, argv);
WTF::Partitions::initialize(nullptr);
- WTF::setAlwaysZeroRandomSourceForTesting();
- WTF::initialize(CurrentTime, CurrentTime, nullptr);
+ WTF::setTimeFunctionsForTesting(dummyCurrentTime);
+ WTF::initialize(nullptr);
WTF::initializeMainThread(0);
blink::TestingPlatformSupport::Config platformConfig;

Powered by Google App Engine
This is Rietveld 408576698