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

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

Issue 2496233003: Destroy the old RenderWidgetHostView when swapping out a main frame. (Closed)
Patch Set: rebase Created 4 years 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.h
diff --git a/content/public/test/test_renderer_host.h b/content/public/test/test_renderer_host.h
index b9d04a20acb5d58023e334b005d496ceeececd9f..2aaa3ff3e057652443dd3f4a243a2026c8a69d22 100644
--- a/content/public/test/test_renderer_host.h
+++ b/content/public/test/test_renderer_host.h
@@ -179,6 +179,10 @@ class RenderViewHostTestEnabler {
DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestEnabler);
friend class RenderViewHostTestHarness;
+#if defined(OS_ANDROID)
+ std::unique_ptr<MockGpuChannelEstablishFactory> gpu_channel_factory_;
+ std::unique_ptr<display::Screen> screen_;
+#endif
std::unique_ptr<MockRenderProcessHostFactory> rph_factory_;
std::unique_ptr<TestRenderViewHostFactory> rvh_factory_;
std::unique_ptr<TestRenderFrameHostFactory> rfh_factory_;
@@ -280,11 +284,8 @@ class RenderViewHostTestHarness : public testing::Test {
#if defined(USE_AURA)
std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_;
#endif
-#if defined(OS_ANDROID)
- std::unique_ptr<MockGpuChannelEstablishFactory> gpu_channel_factory_;
- std::unique_ptr<display::Screen> screen_;
-#endif
- RenderViewHostTestEnabler rvh_test_enabler_;
+ std::unique_ptr<RenderViewHostTestEnabler> rvh_test_enabler_;
+ RenderProcessHostFactory* factory_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
};

Powered by Google App Engine
This is Rietveld 408576698