Remove references to HttpClientResponseCompressionState (#33792)

https://github.com/flutter/flutter/issues/33791
This commit is contained in:
Todd Volkert
2019-06-03 14:53:43 -07:00
committed by GitHub
parent b835b45a3c
commit 52fc807dd2
3 changed files with 19 additions and 1 deletions

View File

@@ -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';
}
}