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

Unified Diff: content/test/content_browser_test_utils.cc

Issue 176883012: Set the original url correctly if the frame is loaded via loadData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add // static comment Created 6 years, 9 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
Index: content/test/content_browser_test_utils.cc
diff --git a/content/test/content_browser_test_utils.cc b/content/test/content_browser_test_utils.cc
index 083f4045ee39a6b94b96f6385b9679381cdb3b25..2bb0841bd6bed93541d67ec5dfbeef043030f613 100644
--- a/content/test/content_browser_test_utils.cc
+++ b/content/test/content_browser_test_utils.cc
@@ -43,6 +43,15 @@ void NavigateToURLBlockUntilNavigationsComplete(Shell* window,
same_tab_observer.Wait();
}
+void LoadDataWithBaseURL(Shell* window, const GURL& base_url,
+ const std::string data, const GURL& history_url) {
+ WaitForLoadStop(window->web_contents());
+ TestNavigationObserver same_tab_observer(window->web_contents(), 1);
+
+ window->LoadDataWithBaseURL(base_url, data, history_url);
+ same_tab_observer.Wait();
+}
+
void NavigateToURL(Shell* window, const GURL& url) {
NavigateToURLBlockUntilNavigationsComplete(window, url, 1);
}
« content/shell/browser/shell.cc ('K') | « content/test/content_browser_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698