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

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

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 unified diff | Download patch
« no previous file with comments | « chrome/test/base/chrome_render_view_test.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/test/base/chrome_render_view_test.h" 5 #include "chrome/test/base/chrome_render_view_test.h"
6 6
7 #include "base/debug/leak_annotations.h" 7 #include "base/debug/leak_annotations.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 chrome_render_thread_(NULL) { 99 chrome_render_thread_(NULL) {
100 } 100 }
101 101
102 ChromeRenderViewTest::~ChromeRenderViewTest() { 102 ChromeRenderViewTest::~ChromeRenderViewTest() {
103 } 103 }
104 104
105 void ChromeRenderViewTest::SetUp() { 105 void ChromeRenderViewTest::SetUp() {
106 ChromeUnitTestSuite::InitializeProviders(); 106 ChromeUnitTestSuite::InitializeProviders();
107 ChromeUnitTestSuite::InitializeResourceBundle(); 107 ChromeUnitTestSuite::InitializeResourceBundle();
108 108
109 chrome_render_thread_ = new ChromeMockRenderThread(); 109 chrome_render_thread_ = CreateMockRenderThread();
110 render_thread_.reset(chrome_render_thread_); 110 render_thread_.reset(chrome_render_thread_);
111 111
112 content::RenderViewTest::SetUp(); 112 content::RenderViewTest::SetUp();
113 113
114 RegisterMainFrameRemoteInterfaces(); 114 RegisterMainFrameRemoteInterfaces();
115 115
116 // RenderFrame doesn't expose its Agent objects, because it has no need to 116 // RenderFrame doesn't expose its Agent objects, because it has no need to
117 // store them directly (they're stored as RenderFrameObserver*). So just 117 // store them directly (they're stored as RenderFrameObserver*). So just
118 // create another set. 118 // create another set.
119 password_autofill_agent_ = 119 password_autofill_agent_ =
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 void ChromeRenderViewTest::DisableUserGestureSimulationForAutofill() { 184 void ChromeRenderViewTest::DisableUserGestureSimulationForAutofill() {
185 EXPECT_CALL(*(static_cast<MockAutofillAgent*>(autofill_agent_)), 185 EXPECT_CALL(*(static_cast<MockAutofillAgent*>(autofill_agent_)),
186 IsUserGesture()).WillRepeatedly(Return(false)); 186 IsUserGesture()).WillRepeatedly(Return(false));
187 } 187 }
188 188
189 void ChromeRenderViewTest::WaitForAutofillDidAssociateFormControl() { 189 void ChromeRenderViewTest::WaitForAutofillDidAssociateFormControl() {
190 static_cast<MockAutofillAgent*>(autofill_agent_) 190 static_cast<MockAutofillAgent*>(autofill_agent_)
191 ->WaitForAutofillDidAssociateFormControl(); 191 ->WaitForAutofillDidAssociateFormControl();
192 } 192 }
193
194 ChromeMockRenderThread* ChromeRenderViewTest::CreateMockRenderThread() {
195 return new ChromeMockRenderThread();
196 }
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_render_view_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698