Unverified Commit 76855aa8 authored by Brian Quinlan's avatar Brian Quinlan Committed by GitHub

Add `keyLog` and `connectionFactory` to HttpClient implementations (#98045)

parent 21a6c064
......@@ -114,6 +114,10 @@ class _MockHttpClient implements HttpClient {
@override
void addProxyCredentials(String host, int port, String realm, HttpClientCredentials credentials) { }
@override
// ignore: override_on_non_overriding_member
Future<ConnectionTask<Socket>> Function(Uri url, String? proxyHost, int? proxyPort)? connectionFactory;
@override
Future<bool> Function(Uri url, String scheme, String realm)? authenticate;
......@@ -123,6 +127,10 @@ class _MockHttpClient implements HttpClient {
@override
bool Function(X509Certificate cert, String host, int port)? badCertificateCallback;
@override
// ignore: override_on_non_overriding_member
Function(String line)? keyLog;
@override
void close({ bool force = false }) { }
......
......@@ -160,6 +160,10 @@ class FakeHttpClient implements HttpClient {
throw UnimplementedError();
}
@override
// ignore: override_on_non_overriding_member
Future<ConnectionTask<Socket>> Function(Uri url, String? proxyHost, int? proxyPort)? connectionFactory;
@override
Future<bool> Function(Uri url, String scheme, String realm)? authenticate;
......@@ -169,6 +173,10 @@ class FakeHttpClient implements HttpClient {
@override
bool Function(X509Certificate cert, String host, int port)? badCertificateCallback;
@override
// ignore: override_on_non_overriding_member
Function(String line)? keyLog;
@override
void close({bool force = false}) { }
......
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