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

Unified Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h

Issue 2376193004: Stop FetchDataLoaderTest from using [Web|Fetch]DataConsumerHandle. (Closed)
Patch Set: fix Created 4 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: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
index 032ddfd753091dfd329ddb56775624db41d690da..88c92062a538fb8aad09a873b1412227cd763408 100644
--- a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
+++ b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
@@ -10,7 +10,6 @@
#include "gin/public/isolate_holder.h"
#include "modules/fetch/DataConsumerHandleUtil.h"
#include "modules/fetch/FetchDataConsumerHandle.h"
-#include "modules/fetch/FetchDataLoader.h"
#include "platform/CrossThreadFunctional.h"
#include "platform/WaitableEvent.h"
#include "platform/WebThreadSupportingGC.h"
@@ -340,33 +339,6 @@ public:
MOCK_METHOD0(destruct, void());
};
- class MockFetchDataLoaderClient : public GarbageCollectedFinalized<MockFetchDataLoaderClient>, public FetchDataLoader::Client {
- USING_GARBAGE_COLLECTED_MIXIN(MockFetchDataLoaderClient);
- public:
- static ::testing::StrictMock<MockFetchDataLoaderClient>* create() { return new ::testing::StrictMock<MockFetchDataLoaderClient>; }
-
- DEFINE_INLINE_VIRTUAL_TRACE()
- {
- FetchDataLoader::Client::trace(visitor);
- }
-
- MOCK_METHOD1(didFetchDataLoadedBlobHandleMock, void(RefPtr<BlobDataHandle>));
- MOCK_METHOD1(didFetchDataLoadedArrayBufferMock, void(DOMArrayBuffer*));
- MOCK_METHOD1(didFetchDataLoadedString, void(const String&));
- MOCK_METHOD0(didFetchDataLoadStream, void());
- MOCK_METHOD0(didFetchDataLoadFailed, void());
-
- void didFetchDataLoadedArrayBuffer(DOMArrayBuffer* arrayBuffer) override
- {
- didFetchDataLoadedArrayBufferMock(arrayBuffer);
- }
- // In mock methods we use RefPtr<> rather than PassRefPtr<>.
- void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle> blobDataHandle) override
- {
- didFetchDataLoadedBlobHandleMock(blobDataHandle);
- }
- };
-
class Command final {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:

Powered by Google App Engine
This is Rietveld 408576698