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

Unified Diff: Source/web/tests/WebFrameTest.cpp

Issue 318673002: Use the ReloadBypassingCache policy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index 890bb5b1ca09794147879f80db02198e4e1c44e2..201f760154b7aece56fc489aa54ce92b2aabb493 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -5449,4 +5449,14 @@ TEST_F(WebFrameTest, NotifyManifestChange)
EXPECT_EQ(14, webFrameClient.manifestChangeCount());
}
+TEST_F(WebFrameTest, ReloadIgnoringCache)
ppi 2014/06/04 16:23:59 This asserts on the resulting policy being "Reload
clamy 2014/06/04 16:39:25 This test checks that asking a reload on a frame w
ppi 2014/06/04 19:25:39 ReloadIgnoringCacheData is a name of caching polic
clamy 2014/06/04 20:14:20 Done.
+{
+ registerMockedHttpURLLoad("foo.html");
+ FrameTestHelpers::WebViewHelper webViewHelper;
+ webViewHelper.initializeAndLoad(m_baseURL + "foo.html", true);
+ WebFrame* frame = webViewHelper.webView()->mainFrame();
+ FrameTestHelpers::reloadFrameIgnoringCache(frame);
+ EXPECT_EQ(WebURLRequest::ReloadBypassingCache, frame->dataSource()->request().cachePolicy());
+}
+
} // namespace
« Source/core/loader/DocumentLoader.cpp ('K') | « Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698