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

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

Issue 206473009: Move GraphicsContextTest to platform/ and fix the test environment. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove extra space Created 6 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
« no previous file with comments | « Source/platform/graphics/GraphicsContextTest.cpp ('k') | Source/web/tests/GraphicsContextTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/testing/RunAllTests.cpp
diff --git a/Source/wtf/testing/RunAllTests.cpp b/Source/platform/testing/RunAllTests.cpp
similarity index 92%
copy from Source/wtf/testing/RunAllTests.cpp
copy to Source/platform/testing/RunAllTests.cpp
index 5d27780e99d586068c6249d6eff297fda1cbd7d9..1b5d88106a327ec36de2c1524b6adcca133a4309 100644
--- a/Source/wtf/testing/RunAllTests.cpp
+++ b/Source/platform/testing/RunAllTests.cpp
@@ -30,6 +30,7 @@
#include "config.h"
+#include "platform/TestingPlatformSupport.h"
#include "wtf/CryptographicallyRandomNumber.h"
#include "wtf/MainThread.h"
#include "wtf/WTF.h"
@@ -51,5 +52,9 @@ int main(int argc, char** argv)
WTF::setRandomSource(AlwaysZeroNumberSource);
WTF::initialize(CurrentTime, 0);
WTF::initializeMainThread(0);
+
+ WebCore::TestingPlatformSupport::Config platformConfig;
+ WebCore::TestingPlatformSupport platform(platformConfig);
+
return base::RunUnitTestsUsingBaseTestSuite(argc, argv);
}
« no previous file with comments | « Source/platform/graphics/GraphicsContextTest.cpp ('k') | Source/web/tests/GraphicsContextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698