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 ...@@ -1763,10 +1763,20 @@ class _MockHttpResponse extends Stream<List<int>> implements HttpClientResponse
@override @override
int get contentLength => -1; int get contentLength => -1;
// TODO(tvolkert): Update (flutter/flutter#33791)
/*
@override @override
HttpClientResponseCompressionState get compressionState { HttpClientResponseCompressionState get compressionState {
return HttpClientResponseCompressionState.decompressed; return HttpClientResponseCompressionState.decompressed;
} }
*/
@override
dynamic noSuchMethod(Invocation invocation) {
if (invocation.memberName == #compressionState) {
return null;
}
return super.noSuchMethod(invocation);
}
@override @override
List<Cookie> get cookies => null; List<Cookie> get cookies => null;
......
...@@ -47,7 +47,8 @@ export 'dart:io' ...@@ -47,7 +47,8 @@ export 'dart:io'
HttpClient, HttpClient,
HttpClientRequest, HttpClientRequest,
HttpClientResponse, HttpClientResponse,
HttpClientResponseCompressionState, // TODO(tvolkert): Uncomment (flutter/flutter#33791)
//HttpClientResponseCompressionState,
HttpHeaders, HttpHeaders,
HttpRequest, HttpRequest,
HttpServer, HttpServer,
......
...@@ -1257,10 +1257,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp ...@@ -1257,10 +1257,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
@override @override
String get reasonPhrase => '<reason phrase>'; String get reasonPhrase => '<reason phrase>';
// TODO(tvolkert): Update (flutter/flutter#33791)
/*
@override @override
HttpClientResponseCompressionState get compressionState { HttpClientResponseCompressionState get compressionState {
return HttpClientResponseCompressionState.decompressed; return HttpClientResponseCompressionState.decompressed;
} }
*/
@override @override
StreamSubscription<List<int>> listen( StreamSubscription<List<int>> listen(
...@@ -1275,6 +1278,10 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp ...@@ -1275,6 +1278,10 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
@override @override
dynamic noSuchMethod(Invocation invocation) { dynamic noSuchMethod(Invocation invocation) {
// TODO(tvolkert): Update (flutter/flutter#33791)
if (invocation.memberName == #compressionState) {
return null;
}
throw 'io.HttpClientResponse - $invocation'; 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