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

Side by Side Diff: chrome/test/base/chrome_render_view_test.h

Issue 2470413004: PlzNavigate: Fix for the PhishingDOMFeatureExtractorTest.SubFrames and SubframeRemoval tests (Closed)
Patch Set: Fix build redness 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ 5 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ 6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 virtual void RegisterMainFrameRemoteInterfaces(); 40 virtual void RegisterMainFrameRemoteInterfaces();
41 41
42 // Initializes commonly needed global state and renderer client parts. 42 // Initializes commonly needed global state and renderer client parts.
43 // Use when overriding CreateContentRendererClient. 43 // Use when overriding CreateContentRendererClient.
44 void InitChromeContentRendererClient(ChromeContentRendererClient* client); 44 void InitChromeContentRendererClient(ChromeContentRendererClient* client);
45 45
46 void EnableUserGestureSimulationForAutofill(); 46 void EnableUserGestureSimulationForAutofill();
47 void DisableUserGestureSimulationForAutofill(); 47 void DisableUserGestureSimulationForAutofill();
48 void WaitForAutofillDidAssociateFormControl(); 48 void WaitForAutofillDidAssociateFormControl();
49 49
50 // Tests which need to handle IPC's sent to the browser should override
51 // this method and return a subclass of ChromeMockRenderThread.
Nathan Parker 2016/11/08 23:27:30 nit: mention who owns this naked ptr.
ananta 2016/11/08 23:52:05 Done.
52 virtual ChromeMockRenderThread* CreateMockRenderThread();
53
50 #if defined(ENABLE_EXTENSIONS) 54 #if defined(ENABLE_EXTENSIONS)
51 std::unique_ptr<extensions::DispatcherDelegate> 55 std::unique_ptr<extensions::DispatcherDelegate>
52 extension_dispatcher_delegate_; 56 extension_dispatcher_delegate_;
53 #endif 57 #endif
54 58
55 autofill::TestPasswordAutofillAgent* password_autofill_agent_; 59 autofill::TestPasswordAutofillAgent* password_autofill_agent_;
56 autofill::TestPasswordGenerationAgent* password_generation_; 60 autofill::TestPasswordGenerationAgent* password_generation_;
57 autofill::AutofillAgent* autofill_agent_; 61 autofill::AutofillAgent* autofill_agent_;
58 62
59 // Naked pointer as ownership is with content::RenderViewTest::render_thread_. 63 // Naked pointer as ownership is with content::RenderViewTest::render_thread_.
60 ChromeMockRenderThread* chrome_render_thread_; 64 ChromeMockRenderThread* chrome_render_thread_;
61 }; 65 };
62 66
63 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ 67 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698