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

Side by Side Diff: Source/modules/fetch/DataConsumerHandleTestUtil.h

Issue 1204263002: Implement FetchDataLoader::createLoaderAsStream() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments. Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/modules/fetch/FetchDataLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef DataConsumerHandleTestUtil_h 5 #ifndef DataConsumerHandleTestUtil_h
6 #define DataConsumerHandleTestUtil_h 6 #define DataConsumerHandleTestUtil_h
7 7
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/testing/NullExecutionContext.h" 9 #include "core/testing/NullExecutionContext.h"
10 #include "gin/public/isolate_holder.h" 10 #include "gin/public/isolate_holder.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 static ::testing::StrictMock<MockFetchDataLoaderClient>* create() { retu rn new ::testing::StrictMock<MockFetchDataLoaderClient>; } 223 static ::testing::StrictMock<MockFetchDataLoaderClient>* create() { retu rn new ::testing::StrictMock<MockFetchDataLoaderClient>; }
224 224
225 DEFINE_INLINE_VIRTUAL_TRACE() 225 DEFINE_INLINE_VIRTUAL_TRACE()
226 { 226 {
227 FetchDataLoader::Client::trace(visitor); 227 FetchDataLoader::Client::trace(visitor);
228 } 228 }
229 229
230 MOCK_METHOD1(didFetchDataLoadedBlobHandleMock, void(RefPtr<BlobDataHandl e>)); 230 MOCK_METHOD1(didFetchDataLoadedBlobHandleMock, void(RefPtr<BlobDataHandl e>));
231 MOCK_METHOD1(didFetchDataLoadedArrayBufferMock, void(RefPtr<DOMArrayBuff er>)); 231 MOCK_METHOD1(didFetchDataLoadedArrayBufferMock, void(RefPtr<DOMArrayBuff er>));
232 MOCK_METHOD1(didFetchDataLoadedString, void(const String&)); 232 MOCK_METHOD1(didFetchDataLoadedString, void(const String&));
233 MOCK_METHOD0(didFetchDataLoadStream, void());
233 MOCK_METHOD0(didFetchDataLoadFailed, void()); 234 MOCK_METHOD0(didFetchDataLoadFailed, void());
234 235
235 // In mock methods we use RefPtr<> rather than PassRefPtr<>. 236 // In mock methods we use RefPtr<> rather than PassRefPtr<>.
236 void didFetchDataLoadedArrayBuffer(PassRefPtr<DOMArrayBuffer> arrayBuffe r) override 237 void didFetchDataLoadedArrayBuffer(PassRefPtr<DOMArrayBuffer> arrayBuffe r) override
237 { 238 {
238 didFetchDataLoadedArrayBufferMock(arrayBuffer); 239 didFetchDataLoadedArrayBufferMock(arrayBuffer);
239 } 240 }
240 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle> blobDataHan dle) override 241 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle> blobDataHan dle) override
241 { 242 {
242 didFetchDataLoadedBlobHandleMock(blobDataHandle); 243 didFetchDataLoadedBlobHandleMock(blobDataHandle);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 Reader* obtainReaderInternal(Client*) override; 320 Reader* obtainReaderInternal(Client*) override;
320 321
321 RefPtr<Context> m_context; 322 RefPtr<Context> m_context;
322 }; 323 };
323 324
324 }; 325 };
325 326
326 } // namespace blink 327 } // namespace blink
327 328
328 #endif // DataConsumerHandleTestUtil_h 329 #endif // DataConsumerHandleTestUtil_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/fetch/FetchDataLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698