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

Unified Diff: Source/modules/fetch/FetchResponseDataTest.cpp

Issue 1285113002: Add opaqueredirect to ResponseType enum for Response Class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | Source/modules/fetch/Response.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/FetchResponseDataTest.cpp
diff --git a/Source/modules/fetch/FetchResponseDataTest.cpp b/Source/modules/fetch/FetchResponseDataTest.cpp
index b7a7d9bfa1ca14ba95e3be793dbe511dce52eeb9..ac8718697b7eef5742d2346622102e73752cf314 100644
--- a/Source/modules/fetch/FetchResponseDataTest.cpp
+++ b/Source/modules/fetch/FetchResponseDataTest.cpp
@@ -78,4 +78,15 @@ TEST_F(FetchResponseDataTest, ToWebServiceWorkerOpaqueType)
CheckHeaders(webResponse);
}
+TEST_F(FetchResponseDataTest, ToWebServiceWorkerOpaqueRedirectType)
+{
+ WebServiceWorkerResponse webResponse;
+ FetchResponseData* internalResponse = createInternalResponse();
+ FetchResponseData* opaqueRedirectResponseData = internalResponse->createOpaqueRedirectFilteredResponse();
+
+ opaqueRedirectResponseData->populateWebServiceWorkerResponse(webResponse);
+ EXPECT_EQ(WebServiceWorkerResponseTypeOpaqueRedirect, webResponse.responseType());
+ CheckHeaders(webResponse);
+}
+
} // namespace WebCore
« no previous file with comments | « no previous file | Source/modules/fetch/Response.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698