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

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

Issue 2861533003: Backfill some UI tests. (Closed)
Patch Set: comments Created 3 years, 7 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: content/public/test/test_renderer_host.cc
diff --git a/content/public/test/test_renderer_host.cc b/content/public/test/test_renderer_host.cc
index 538a2ccbff5ccb373e97f3fe458e113df2f68736..e30fb96b4568bc89a14c92e125e7543f207527d3 100644
--- a/content/public/test/test_renderer_host.cc
+++ b/content/public/test/test_renderer_host.cc
@@ -281,6 +281,11 @@ void RenderViewHostTestHarness::SetUp() {
browser_context_.reset(CreateBrowserContext());
SetContents(CreateTestWebContents());
+#if defined(USE_AURA)
+ static_cast<content::TestRenderWidgetHostView*>(
+ web_contents()->GetRenderWidgetHostView())
+ ->set_native_view(aura_test_helper_->root_window());
sky 2017/05/07 22:44:23 This is confusing as you're setting the aura::Wind
Bret 2017/05/09 23:44:42 Okay I made TestRenderWidgetHostView a WindowDeleg
+#endif
if (IsBrowserSideNavigationEnabled())
BrowserSideNavigationSetUp();

Powered by Google App Engine
This is Rietveld 408576698