| 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..b7bd1f8d4b2793bb260a3768a6d38ffd1cc6b908 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& url,
|
| + const std::string data, const GURL& base_url) {
|
| + WaitForLoadStop(window->web_contents());
|
| + TestNavigationObserver same_tab_observer(window->web_contents(), 1);
|
| +
|
| + window->LoadDataWithBaseURL(url, data, base_url);
|
| + same_tab_observer.Wait();
|
| +}
|
| +
|
| void NavigateToURL(Shell* window, const GURL& url) {
|
| NavigateToURLBlockUntilNavigationsComplete(window, url, 1);
|
| }
|
|
|