Unverified Commit 3631adc9 authored by zichangg's avatar zichangg Committed by GitHub

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
parent 6e0bc30e
......@@ -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;
......
......@@ -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 {
......
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