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

Side by Side Diff: content/browser/web_contents/test_web_contents.cc

Issue 11801011: Also filter the URLs from incoming non-provisional navigation IPCs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
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 "content/browser/web_contents/test_web_contents.h" 5 #include "content/browser/web_contents/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 const SiteInstance* site_instance, int history_length, 193 const SiteInstance* site_instance, int history_length,
194 int32 min_page_id) { 194 int32 min_page_id) {
195 EXPECT_TRUE(expect_set_history_length_and_prune_); 195 EXPECT_TRUE(expect_set_history_length_and_prune_);
196 expect_set_history_length_and_prune_ = false; 196 expect_set_history_length_and_prune_ = false;
197 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance); 197 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance);
198 EXPECT_EQ(expect_set_history_length_and_prune_history_length_, 198 EXPECT_EQ(expect_set_history_length_and_prune_history_length_,
199 history_length); 199 history_length);
200 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id); 200 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id);
201 } 201 }
202 202
203 void TestWebContents::TestDidFinishLoad(int64 frame_id,
204 const GURL& url,
205 bool is_main_frame) {
206 ViewHostMsg_DidFinishLoad msg(0, frame_id, url, is_main_frame);
207 OnMessageReceived(render_manager_.current_host(), msg);
208 }
209
210 void TestWebContents::TestDidFailLoadWithError(
211 int64 frame_id,
212 const GURL& url,
213 bool is_main_frame,
214 int error_code,
215 const string16& error_description) {
216 ViewHostMsg_DidFailLoadWithError msg(
217 0, frame_id, url, is_main_frame, error_code, error_description);
218 OnMessageReceived(render_manager_.current_host(), msg);
219 }
220
203 void TestWebContents::CreateNewWindow( 221 void TestWebContents::CreateNewWindow(
204 int route_id, 222 int route_id,
205 const ViewHostMsg_CreateWindow_Params& params, 223 const ViewHostMsg_CreateWindow_Params& params,
206 SessionStorageNamespace* session_storage_namespace) { 224 SessionStorageNamespace* session_storage_namespace) {
207 } 225 }
208 226
209 void TestWebContents::CreateNewWidget(int route_id, 227 void TestWebContents::CreateNewWidget(int route_id,
210 WebKit::WebPopupType popup_type) { 228 WebKit::WebPopupType popup_type) {
211 } 229 }
212 230
213 void TestWebContents::CreateNewFullscreenWidget(int route_id) { 231 void TestWebContents::CreateNewFullscreenWidget(int route_id) {
214 } 232 }
215 233
216 void TestWebContents::ShowCreatedWindow(int route_id, 234 void TestWebContents::ShowCreatedWindow(int route_id,
217 WindowOpenDisposition disposition, 235 WindowOpenDisposition disposition,
218 const gfx::Rect& initial_pos, 236 const gfx::Rect& initial_pos,
219 bool user_gesture) { 237 bool user_gesture) {
220 } 238 }
221 239
222 void TestWebContents::ShowCreatedWidget(int route_id, 240 void TestWebContents::ShowCreatedWidget(int route_id,
223 const gfx::Rect& initial_pos) { 241 const gfx::Rect& initial_pos) {
224 } 242 }
225 243
226 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 244 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
227 } 245 }
228 246
229 } // namespace content 247 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/test_web_contents.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698