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

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: Addresses comments from PS4 and fixes some cache tests 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
Index: Source/modules/serviceworkers/CacheTest.cpp
diff --git a/Source/modules/serviceworkers/CacheTest.cpp b/Source/modules/serviceworkers/CacheTest.cpp
index 1a4c236f17c9d1cefa7501186764a7df0163198f..b90dc54385b7efe8035b70d4d74d638d55734921 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(WebServiceWorkerResponse::DefaultType);
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(WebServiceWorkerResponse::DefaultType);
webResponses[1].setURL(KURL(ParsedURLString, url2));
+ webResponses[1].setResponseType(WebServiceWorkerResponse::DefaultType);
Cache* cache = Cache::create(new MatchAllAndBatchTestCache(webResponses));

Powered by Google App Engine
This is Rietveld 408576698