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

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

Issue 1780083002: Introduce Platform::setCurrentPlatformForTesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 69caa00390fbd3299790d689ec51dd49b77609df..2a3220e0e84829a4a68c26bb6db127be434f9236 100644
--- a/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
+++ b/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
@@ -35,6 +35,7 @@
#include "platform/HTTPNames.h"
#include "platform/heap/Heap.h"
#include "platform/testing/TestingPlatformSupport.h"
+#include "public/platform/Platform.h"
#include "wtf/CryptographicallyRandomNumber.h"
#include "wtf/CurrentTime.h"
#include "wtf/MainThread.h"
@@ -72,6 +73,7 @@ int main(int argc, char** argv)
WTF::initialize(nullptr);
WTF::initializeMainThread(0);
+ blink::Platform::initialize(nullptr);
blink::TestingPlatformSupport::Config platformConfig;
cc_blink::WebCompositorSupportImpl compositorSupport;
platformConfig.compositorSupport = &compositorSupport;
@@ -96,6 +98,8 @@ int main(int argc, char** argv)
blink::ThreadState::detachMainThread();
blink::Heap::shutdown();
+ blink::Platform::shutdown();
+
WTF::shutdown();
WTF::Partitions::shutdown();
return result;

Powered by Google App Engine
This is Rietveld 408576698