Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
76855aa8
Unverified
Commit
76855aa8
authored
Feb 11, 2022
by
Brian Quinlan
Committed by
GitHub
Feb 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `keyLog` and `connectionFactory` to HttpClient implementations (#98045)
parent
21a6c064
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
_binding_io.dart
packages/flutter_test/lib/src/_binding_io.dart
+8
-0
fake_http_client.dart
packages/flutter_tools/test/src/fake_http_client.dart
+8
-0
No files found.
packages/flutter_test/lib/src/_binding_io.dart
View file @
76855aa8
...
...
@@ -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
})
{
}
...
...
packages/flutter_tools/test/src/fake_http_client.dart
View file @
76855aa8
...
...
@@ -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
})
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment