| Index: content/public/test/content_browser_test_utils.cc
|
| diff --git a/content/public/test/content_browser_test_utils.cc b/content/public/test/content_browser_test_utils.cc
|
| index c2de31469d369c8229be03e06fa722d075235e5f..d9448f0fc4dd1808653208cb83b890efce18d48d 100644
|
| --- a/content/public/test/content_browser_test_utils.cc
|
| +++ b/content/public/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);
|
| }
|
|
|