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

Unified Diff: third_party/WebKit/Source/wtf/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
« no previous file with comments | « third_party/WebKit/Source/wtf/WTF.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/wtf/testing/RunAllTests.cpp
diff --git a/third_party/WebKit/Source/wtf/testing/RunAllTests.cpp b/third_party/WebKit/Source/wtf/testing/RunAllTests.cpp
index 0a90a9132001c3af9ea790c01fc3ae9bc3e62243..c342f6004d0d87bffb23803799c74f7d3b42d986 100644
--- a/third_party/WebKit/Source/wtf/testing/RunAllTests.cpp
+++ b/third_party/WebKit/Source/wtf/testing/RunAllTests.cpp
@@ -29,13 +29,14 @@
*/
#include "wtf/CryptographicallyRandomNumber.h"
+#include "wtf/CurrentTime.h"
#include "wtf/MainThread.h"
#include "wtf/Partitions.h"
#include "wtf/WTF.h"
#include <base/test/test_suite.h>
#include <string.h>
-static double CurrentTime()
+static double dummyCurrentTime()
{
return 0.0;
}
@@ -43,8 +44,8 @@ static double CurrentTime()
int main(int argc, char** argv)
{
WTF::Partitions::initialize(nullptr);
- WTF::setAlwaysZeroRandomSourceForTesting();
- WTF::initialize(CurrentTime, nullptr, nullptr);
+ WTF::setTimeFunctionsForTesting(dummyCurrentTime);
+ WTF::initialize(nullptr);
WTF::initializeMainThread(0);
return base::RunUnitTestsUsingBaseTestSuite(argc, argv);
}
« no previous file with comments | « third_party/WebKit/Source/wtf/WTF.cpp ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698