Re-apply compressionState changes. (#34341)

This re-applies the changes that were made in #33697 and #33729,
but which were reverted in #33792 and #33790, respectively due to
the Dart SDK not having received the update within Google yet.
The SDK has now rolled, so these changes can be re-applied.

https://github.com/flutter/flutter/issues/32374
https://github.com/flutter/flutter/issues/33791
This commit is contained in:
Todd Volkert
2019-06-12 13:47:47 -07:00
committed by GitHub
parent 25c84001c4
commit 8163c0aebb
6 changed files with 28 additions and 54 deletions

View File

@@ -1770,20 +1770,10 @@ 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;