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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 5431 matching lines...) Expand 10 before | Expand all | Expand 10 after
5442 { 5442 {
5443 registerMockedHttpURLLoad("link-manifest-change.html"); 5443 registerMockedHttpURLLoad("link-manifest-change.html");
5444 5444
5445 ManifestChangeWebFrameClient webFrameClient; 5445 ManifestChangeWebFrameClient webFrameClient;
5446 FrameTestHelpers::WebViewHelper webViewHelper; 5446 FrameTestHelpers::WebViewHelper webViewHelper;
5447 webViewHelper.initializeAndLoad(m_baseURL + "link-manifest-change.html", tru e, &webFrameClient); 5447 webViewHelper.initializeAndLoad(m_baseURL + "link-manifest-change.html", tru e, &webFrameClient);
5448 5448
5449 EXPECT_EQ(14, webFrameClient.manifestChangeCount()); 5449 EXPECT_EQ(14, webFrameClient.manifestChangeCount());
5450 } 5450 }
5451 5451
5452 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.
5453 {
5454 registerMockedHttpURLLoad("foo.html");
5455 FrameTestHelpers::WebViewHelper webViewHelper;
5456 webViewHelper.initializeAndLoad(m_baseURL + "foo.html", true);
5457 WebFrame* frame = webViewHelper.webView()->mainFrame();
5458 FrameTestHelpers::reloadFrameIgnoringCache(frame);
5459 EXPECT_EQ(WebURLRequest::ReloadBypassingCache, frame->dataSource()->request( ).cachePolicy());
5460 }
5461
5452 } // namespace 5462 } // namespace
OLDNEW
« 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