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

Unified Diff: chrome/test/base/chrome_render_view_test.h

Issue 2470413004: PlzNavigate: Fix for the PhishingDOMFeatureExtractorTest.SubFrames and SubframeRemoval tests (Closed)
Patch Set: Address review comments 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
Index: chrome/test/base/chrome_render_view_test.h
diff --git a/chrome/test/base/chrome_render_view_test.h b/chrome/test/base/chrome_render_view_test.h
index 342ed130bae1d34178793a1c1131b5f27a89e5b8..6ee89e1bcb94f54281c86d487c4960cefcba22e8 100644
--- a/chrome/test/base/chrome_render_view_test.h
+++ b/chrome/test/base/chrome_render_view_test.h
@@ -47,6 +47,12 @@ class ChromeRenderViewTest : public content::RenderViewTest {
void DisableUserGestureSimulationForAutofill();
void WaitForAutofillDidAssociateFormControl();
+ // Tests which need to handle IPC's sent to the browser should override
+ // this method and return a subclass of ChromeMockRenderThread.
+ // The ChromeMockRenderThread pointer is owned by the ChromeRenderViewTest
+ // class.
+ virtual ChromeMockRenderThread* CreateMockRenderThread();
+
#if defined(ENABLE_EXTENSIONS)
std::unique_ptr<extensions::DispatcherDelegate>
extension_dispatcher_delegate_;

Powered by Google App Engine
This is Rietveld 408576698