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

Unified Diff: content/public/test/render_view_test.cc

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Rebase only Created 4 years, 1 month 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 | « content/browser/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c9fb5d4371bed3c688df160f301c558c3f4e401e..defddbdcb59b98365c958e654fff7263d4efb2b9 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -230,6 +230,12 @@ void RenderViewTest::GoForward(const GURL& url, const PageState& state) {
}
void RenderViewTest::SetUp() {
+ // Initialize mojo firstly to enable Blink initialization to use it.
+ InitializeMojo();
+ test_io_thread_.reset(new base::TestIOThread(base::TestIOThread::kAutoStart));
+ ipc_support_.reset(
+ new mojo::edk::test::ScopedIPCSupport(test_io_thread_->task_runner()));
+
// Blink needs to be initialized before calling CreateContentRendererClient()
// because it uses blink internally.
blink::initialize(blink_platform_impl_.Get());
@@ -307,11 +313,6 @@ void RenderViewTest::SetUp() {
view_params.min_size = gfx::Size();
view_params.max_size = gfx::Size();
- InitializeMojo();
- test_io_thread_.reset(new base::TestIOThread(base::TestIOThread::kAutoStart));
- ipc_support_.reset(
- new mojo::edk::test::ScopedIPCSupport(test_io_thread_->task_runner()));
-
// This needs to pass the mock render thread to the view.
RenderViewImpl* view =
RenderViewImpl::Create(compositor_deps_.get(), view_params, false);
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698