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); |
} |