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

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

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: More global-interface-listing*-expected.txt, urlencoded-parser-expected.txt Created 3 years, 7 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/BytesConsumerTestUtil.h
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h b/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h
index 4c5d0cf70a63a6dda8a82f9d2fba6ea4cd7f75e1..76f91321936002c1cfc5b1a9f06ab379aae841ba 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h
@@ -59,6 +59,7 @@ class BytesConsumerTestUtil {
MOCK_METHOD1(DidFetchDataLoadedBlobHandleMock,
void(RefPtr<BlobDataHandle>));
MOCK_METHOD1(DidFetchDataLoadedArrayBufferMock, void(DOMArrayBuffer*));
+ MOCK_METHOD1(DidFetchDataLoadedFormDataMock, void(FormData*));
MOCK_METHOD1(DidFetchDataLoadedString, void(const String&));
MOCK_METHOD0(DidFetchDataLoadStream, void());
MOCK_METHOD0(DidFetchDataLoadFailed, void());
@@ -71,6 +72,9 @@ class BytesConsumerTestUtil {
PassRefPtr<BlobDataHandle> blob_data_handle) override {
DidFetchDataLoadedBlobHandleMock(std::move(blob_data_handle));
}
+ void DidFetchDataLoadedFormData(FormData* FormData) override {
+ DidFetchDataLoadedFormDataMock(FormData);
+ }
};
class Command final {

Powered by Google App Engine
This is Rietveld 408576698