Add keyLog and connectionFactory to HttpClient implementations (#98045)
This commit is contained in:
@@ -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}) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user