OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "modules/fetch/FetchResponseData.h" | 6 #include "modules/fetch/FetchResponseData.h" |
7 | 7 |
| 8 #include "core/dom/DOMArrayBuffer.h" |
8 #include "modules/fetch/FetchHeaderList.h" | 9 #include "modules/fetch/FetchHeaderList.h" |
9 #include "platform/blob/BlobData.h" | 10 #include "platform/blob/BlobData.h" |
10 #include "public/platform/WebServiceWorkerResponse.h" | 11 #include "public/platform/WebServiceWorkerResponse.h" |
11 | 12 |
12 #include <gtest/gtest.h> | 13 #include <gtest/gtest.h> |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 class FetchResponseDataTest : public ::testing::Test { | 17 class FetchResponseDataTest : public ::testing::Test { |
17 public: | 18 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 WebServiceWorkerResponse webResponse; | 72 WebServiceWorkerResponse webResponse; |
72 FetchResponseData* internalResponse = createInternalResponse(); | 73 FetchResponseData* internalResponse = createInternalResponse(); |
73 FetchResponseData* opaqueResponseData = internalResponse->createOpaqueFilter
edResponse(); | 74 FetchResponseData* opaqueResponseData = internalResponse->createOpaqueFilter
edResponse(); |
74 | 75 |
75 opaqueResponseData->populateWebServiceWorkerResponse(webResponse); | 76 opaqueResponseData->populateWebServiceWorkerResponse(webResponse); |
76 EXPECT_EQ(WebServiceWorkerResponseTypeOpaque, webResponse.responseType()); | 77 EXPECT_EQ(WebServiceWorkerResponseTypeOpaque, webResponse.responseType()); |
77 CheckHeaders(webResponse); | 78 CheckHeaders(webResponse); |
78 } | 79 } |
79 | 80 |
80 } // namespace WebCore | 81 } // namespace WebCore |
OLD | NEW |