Fixing patch for coming breaking change in HttpClientRequest (#61138)

* Fixing patch for coming breaking change in HttpClientRequest

* Add noSuchMethod() and comment out abort()

* Add ignore: override_on_non_overriding_member
This commit is contained in:
zichangg 2020-07-15 10:07:57 -07:00 committed by GitHub
parent 6e0bc30e84
commit 3631adc99a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -228,6 +228,11 @@ class _MockHttpRequest extends HttpClientRequest {
return Future<HttpClientResponse>.value(_MockHttpResponse());
}
// TODO(zichangguo): remove the ignore after the change in dart:io lands.
@override
// ignore: override_on_non_overriding_member
void abort([Object exception, StackTrace stackTrace]) {}
@override
HttpConnectionInfo get connectionInfo => null;

View File

@ -377,6 +377,11 @@ class FakeHttpClientRequest implements HttpClientRequest {
@override
void writeln([Object obj = '']) {}
// TODO(zichangguo): remove the ignore after the change in dart:io lands.
@override
// ignore: override_on_non_overriding_member
void abort([Object exception, StackTrace stackTrace]) {}
}
class FakeHttpClientResponse implements HttpClientResponse {