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

Side by Side Diff: content/test/test_web_contents.cc

Issue 1194383003: Add a flag showing whether the current request was ignored by a handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failures (DidFailProvisionalLoad calls in unit tests) Created 5 years, 6 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
« no previous file with comments | « content/test/test_web_contents.h ('k') | content/test/web_contents_observer_sanity_checker.h » ('j') | 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 "content/test/test_web_contents.h" 5 #include "content/test/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "content/browser/browser_url_handler_impl.h" 10 #include "content/browser/browser_url_handler_impl.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 246 }
247 247
248 void TestWebContents::TestDidFinishLoad(const GURL& url) { 248 void TestWebContents::TestDidFinishLoad(const GURL& url) {
249 FrameHostMsg_DidFinishLoad msg(0, url); 249 FrameHostMsg_DidFinishLoad msg(0, url);
250 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); 250 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg);
251 } 251 }
252 252
253 void TestWebContents::TestDidFailLoadWithError( 253 void TestWebContents::TestDidFailLoadWithError(
254 const GURL& url, 254 const GURL& url,
255 int error_code, 255 int error_code,
256 const base::string16& error_description) { 256 const base::string16& error_description,
257 bool was_ignored_by_handler) {
257 FrameHostMsg_DidFailLoadWithError msg( 258 FrameHostMsg_DidFailLoadWithError msg(
258 0, url, error_code, error_description); 259 0, url, error_code, error_description, was_ignored_by_handler);
259 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); 260 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg);
260 } 261 }
261 262
262 void TestWebContents::CreateNewWindow( 263 void TestWebContents::CreateNewWindow(
263 int render_process_id, 264 int render_process_id,
264 int route_id, 265 int route_id,
265 int main_frame_route_id, 266 int main_frame_route_id,
266 const ViewHostMsg_CreateWindow_Params& params, 267 const ViewHostMsg_CreateWindow_Params& params,
267 SessionStorageNamespace* session_storage_namespace) { 268 SessionStorageNamespace* session_storage_namespace) {
268 } 269 }
(...skipping 20 matching lines...) Expand all
289 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 290 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
290 } 291 }
291 292
292 void TestWebContents::SaveFrameWithHeaders(const GURL& url, 293 void TestWebContents::SaveFrameWithHeaders(const GURL& url,
293 const Referrer& referrer, 294 const Referrer& referrer,
294 const std::string& headers) { 295 const std::string& headers) {
295 save_frame_headers_ = headers; 296 save_frame_headers_ = headers;
296 } 297 }
297 298
298 } // namespace content 299 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_web_contents.h ('k') | content/test/web_contents_observer_sanity_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698