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

Unified Diff: third_party/WebKit/Source/core/fetch/MockResource.cpp

Issue 2560763002: Loading: Use MockResource in MemoryCacheCorrectnessTest.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 | « third_party/WebKit/Source/core/fetch/MockResource.h ('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/fetch/MockResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MockResource.cpp b/third_party/WebKit/Source/core/fetch/MockResource.cpp
index b57eb509a8c987048108c762de3510dccbbae72e..57796d02b378f374f1993c9c887b636d42ae2a4b 100644
--- a/third_party/WebKit/Source/core/fetch/MockResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/MockResource.cpp
@@ -34,6 +34,11 @@ MockResource* MockResource::fetch(FetchRequest& request,
return static_cast<MockResource*>(resource);
}
+// static
+MockResource* MockResource::create(const ResourceRequest& request) {
+ return new MockResource(request, ResourceLoaderOptions());
+}
+
MockResource::MockResource(const ResourceRequest& request,
const ResourceLoaderOptions& options)
: Resource(request, Resource::Mock, options) {}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MockResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698