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

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

Issue 2345543002: debugging for crbug.com/646539
Patch Set: 3 TUs, 2 .h Created 4 years, 3 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/platform/graphics/Color.cpp ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
index 001fe78863d67dab529f3ed3382dfe7546d76378..5c57d0e90f1a5f10879dc77e14559dd8d95fbd5c 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
@@ -234,28 +234,11 @@ ScopedUnittestsEnvironmentSetup::ScopedUnittestsEnvironmentSetup(int argc, char*
{
base::CommandLine::Init(argc, argv);
- base::test::InitializeICUForTesting();
-
- m_discardableMemoryAllocator = wrapUnique(new base::TestDiscardableMemoryAllocator);
- base::DiscardableMemoryAllocator::SetInstance(m_discardableMemoryAllocator.get());
- base::StatisticsRecorder::Initialize();
-
- m_platform = wrapUnique(new DummyPlatform);
- Platform::setCurrentPlatformForTesting(m_platform.get());
-
WTF::Partitions::initialize(nullptr);
- WTF::setTimeFunctionsForTesting(dummyCurrentTime);
WTF::initialize(nullptr);
- m_compositorSupport = wrapUnique(new cc_blink::WebCompositorSupportImpl);
- m_testingPlatformConfig.compositorSupport = m_compositorSupport.get();
- m_testingPlatformSupport = wrapUnique(new TestingPlatformSupport(m_testingPlatformConfig));
-
ProcessHeap::init();
ThreadState::attachMainThread();
- ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr, nullptr);
- EventTracer::initialize();
- HTTPNames::init();
}
ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup()
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Color.cpp ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698