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

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

Issue 2582173002: Use MockResource instead of ImageResource in FrameFetchContextTest.cpp (Closed)
Patch Set: Rebase Created 4 years 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 | « no previous file | 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 9384bb5bf72f96ed55c2f067761f06f4f620fd12..1840b622a5e3fc54a0dcc7b58991c0bd9f892169 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
@@ -32,6 +32,7 @@
#include "core/dom/Document.h"
#include "core/fetch/FetchInitiatorInfo.h"
+#include "core/fetch/MockResource.h"
#include "core/fetch/UniqueIdentifier.h"
#include "core/frame/FrameHost.h"
#include "core/frame/FrameOwner.h"
@@ -678,7 +679,7 @@ TEST_F(FrameFetchContextTest, DisabledDataSaver) {
TEST_F(FrameFetchContextMockedFrameLoaderClientTest,
DispatchDidLoadResourceFromMemoryCache) {
ResourceRequest resourceRequest(url);
- Resource* resource = ImageResource::create(resourceRequest);
+ Resource* resource = MockResource::create(resourceRequest);
EXPECT_CALL(
*client,
dispatchDidLoadResourceFromMemoryCache(
@@ -701,7 +702,7 @@ TEST_F(FrameFetchContextMockedFrameLoaderClientTest,
ResourceResponse response;
response.setURL(url);
response.setHasMajorCertificateErrors(true);
- Resource* resource = ImageResource::create(resourceRequest);
+ Resource* resource = MockResource::create(resourceRequest);
resource->setResponse(response);
EXPECT_CALL(*client, didDisplayContentWithCertificateErrors(url));
fetchContext->dispatchDidLoadResourceFromMemoryCache(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698