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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/test_web_contents.cc
diff --git a/content/browser/web_contents/test_web_contents.cc b/content/browser/web_contents/test_web_contents.cc
index 9ae1486eb696e18296320881bfdaa42696fff60c..8310fa2db39803deaf9c38614b2b1322ce4945a3 100644
--- a/content/browser/web_contents/test_web_contents.cc
+++ b/content/browser/web_contents/test_web_contents.cc
@@ -200,6 +200,24 @@ void TestWebContents::SetHistoryLengthAndPrune(
EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id);
}
+void TestWebContents::TestDidFinishLoad(int64 frame_id,
+ const GURL& url,
+ bool is_main_frame) {
+ ViewHostMsg_DidFinishLoad msg(0, frame_id, url, is_main_frame);
+ OnMessageReceived(render_manager_.current_host(), msg);
+}
+
+void TestWebContents::TestDidFailLoadWithError(
+ int64 frame_id,
+ const GURL& url,
+ bool is_main_frame,
+ int error_code,
+ const string16& error_description) {
+ ViewHostMsg_DidFailLoadWithError msg(
+ 0, frame_id, url, is_main_frame, error_code, error_description);
+ OnMessageReceived(render_manager_.current_host(), msg);
+}
+
void TestWebContents::CreateNewWindow(
int route_id,
const ViewHostMsg_CreateWindow_Params& params,
« 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