Unverified Commit 52fc807d authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Remove references to HttpClientResponseCompressionState (#33792)

https://github.com/flutter/flutter/issues/33791
parent b835b45a
......@@ -1763,10 +1763,20 @@ class _MockHttpResponse extends Stream<List<int>> implements HttpClientResponse
@override
int get contentLength => -1;
// TODO(tvolkert): Update (flutter/flutter#33791)
/*
@override
HttpClientResponseCompressionState get compressionState {
return HttpClientResponseCompressionState.decompressed;
}
*/
@override
dynamic noSuchMethod(Invocation invocation) {
if (invocation.memberName == #compressionState) {
return null;
}
return super.noSuchMethod(invocation);
}
@override
List<Cookie> get cookies => null;
......
......@@ -47,7 +47,8 @@ export 'dart:io'
HttpClient,
HttpClientRequest,
HttpClientResponse,
HttpClientResponseCompressionState,
// TODO(tvolkert): Uncomment (flutter/flutter#33791)
//HttpClientResponseCompressionState,
HttpHeaders,
HttpRequest,
HttpServer,
......
......@@ -1257,10 +1257,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
@override
String get reasonPhrase => '<reason phrase>';
// TODO(tvolkert): Update (flutter/flutter#33791)
/*
@override
HttpClientResponseCompressionState get compressionState {
return HttpClientResponseCompressionState.decompressed;
}
*/
@override
StreamSubscription<List<int>> listen(
......@@ -1275,6 +1278,10 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
@override
dynamic noSuchMethod(Invocation invocation) {
// TODO(tvolkert): Update (flutter/flutter#33791)
if (invocation.memberName == #compressionState) {
return null;
}
throw 'io.HttpClientResponse - $invocation';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment