Index: content/public/test/render_view_test.cc |
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc |
index 0cb39a4b6617bb126d78529b8fd960df8f35f157..ba6e6cd9f8b6a586f6a1703ce6d902810258c8ba 100644 |
--- a/content/public/test/render_view_test.cc |
+++ b/content/public/test/render_view_test.cc |
@@ -276,6 +276,12 @@ void RenderViewTest::SetUp() { |
#if !defined(OS_IOS) |
InitializeMojo(); |
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("use-new-edk")) { |
+ test_io_thread_.reset(new base::TestIOThread( |
+ base::TestIOThread::kAutoStart)); |
+ ipc_support_.reset(new mojo::test::ScopedIPCSupport( |
+ test_io_thread_->task_runner())); |
+ } |
#endif |
// This needs to pass the mock render thread to the view. |
@@ -317,6 +323,9 @@ void RenderViewTest::TearDown() { |
platform_.reset(); |
params_.reset(); |
command_line_.reset(); |
+ |
+ test_io_thread_.reset(); |
+ ipc_support_.reset(); |
} |
void RenderViewTest::onLeakDetectionComplete(const Result& result) { |