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

Side by Side Diff: Source/modules/fetch/FetchResponseDataTest.cpp

Issue 1192913007: Change BodyStreamBuffer to be FetchDataConsumerHandle-based and enable backpressure in Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments. Created 5 years, 5 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698