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

Unified Diff: content/public/test/content_browser_test_utils.cc

Issue 1905873002: Add content_browsertests for testing cache control flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove ResourceFetcher change temporarily, fix a nit of #19 Created 4 years, 7 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/public/test/content_browser_test_utils.h ('k') | content/shell/browser/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dab6f7270b64d76440f4654a9f00bc5ce2700a83..daa8e09267aec581b1ada59ffba88c66473c0475 100644
--- a/content/public/test/content_browser_test_utils.cc
+++ b/content/public/test/content_browser_test_utils.cc
@@ -53,6 +53,17 @@ void ReloadBlockUntilNavigationsComplete(Shell* window,
same_tab_observer.Wait();
}
+void ReloadBypassingCacheBlockUntilNavigationsComplete(
+ Shell* window,
+ int number_of_navigations) {
+ WaitForLoadStop(window->web_contents());
+ TestNavigationObserver same_tab_observer(window->web_contents(),
+ number_of_navigations);
+
+ window->ReloadBypassingCache();
+ same_tab_observer.Wait();
+}
+
void LoadDataWithBaseURL(Shell* window,
const GURL& url,
const std::string& data,
« no previous file with comments | « content/public/test/content_browser_test_utils.h ('k') | content/shell/browser/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698