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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp

Issue 2399473002: Remove Resource::create() to ensure proper subclasses of Resource are created (Closed)
Patch Set: Rebase Created 4 years, 2 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 | « third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
index 745036a4cf56f3586a19b52e29144c95dc97e656..587b47dfa71b4c33b31983d22f7e361b5a9b58c4 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
@@ -613,7 +613,7 @@ TEST_F(FrameFetchContextDisplayedCertificateErrorsTest,
ResourceResponse response;
response.setURL(url);
response.setHasMajorCertificateErrors(true);
- Resource* resource = Resource::create(resourceRequest, Resource::Image);
+ Resource* resource = ImageResource::create(resourceRequest);
resource->setResponse(response);
fetchContext->dispatchDidLoadResourceFromMemoryCache(
createUniqueIdentifier(), resource, WebURLRequest::FrameTypeNone,
« no previous file with comments | « third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698