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

Unified Diff: Source/modules/serviceworkers/CacheTest.cpp

Issue 617003003: Make WebServiceWorkerResponse support ResponseType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Put WebServiceWorkerResponseType enum in its own file (so browser can load it) Created 6 years, 3 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 | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/FetchResponseData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/CacheTest.cpp
diff --git a/Source/modules/serviceworkers/CacheTest.cpp b/Source/modules/serviceworkers/CacheTest.cpp
index 1a4c236f17c9d1cefa7501186764a7df0163198f..b79fc3e9e5eadbf4fc7762f4b4cc152cce420377 100644
--- a/Source/modules/serviceworkers/CacheTest.cpp
+++ b/Source/modules/serviceworkers/CacheTest.cpp
@@ -424,6 +424,7 @@ TEST_F(ServiceWorkerCacheTest, MatchResponseTest)
WebServiceWorkerResponse webResponse;
webResponse.setURL(KURL(ParsedURLString, responseUrl));
+ webResponse.setResponseType(WebServiceWorkerResponseTypeDefault);
Cache* cache = Cache::create(new MatchTestCache(webResponse));
CacheQueryOptions* options = CacheQueryOptions::create();
@@ -511,7 +512,9 @@ TEST_F(ServiceWorkerCacheTest, MatchAllAndBatchResponseTest)
WebVector<WebServiceWorkerResponse> webResponses(size_t(2));
webResponses[0].setURL(KURL(ParsedURLString, url1));
+ webResponses[0].setResponseType(WebServiceWorkerResponseTypeDefault);
webResponses[1].setURL(KURL(ParsedURLString, url2));
+ webResponses[1].setResponseType(WebServiceWorkerResponseTypeDefault);
Cache* cache = Cache::create(new MatchAllAndBatchTestCache(webResponses));
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/FetchResponseData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698