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
52fc807d
Unverified
Commit
52fc807d
authored
Jun 03, 2019
by
Todd Volkert
Committed by
GitHub
Jun 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove references to HttpClientResponseCompressionState (#33792)
https://github.com/flutter/flutter/issues/33791
parent
b835b45a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
binding.dart
packages/flutter_test/lib/src/binding.dart
+10
-0
io.dart
packages/flutter_tools/lib/src/base/io.dart
+2
-1
create_test.dart
packages/flutter_tools/test/commands/create_test.dart
+7
-0
No files found.
packages/flutter_test/lib/src/binding.dart
View file @
52fc807d
...
...
@@ -1763,10 +1763,20 @@ class _MockHttpResponse extends Stream<List<int>> implements HttpClientResponse
@override
int
get
contentLength
=>
-
1
;
// TODO(tvolkert): Update (flutter/flutter#33791)
/*
@override
HttpClientResponseCompressionState get compressionState {
return HttpClientResponseCompressionState.decompressed;
}
*/
@override
dynamic
noSuchMethod
(
Invocation
invocation
)
{
if
(
invocation
.
memberName
==
#compressionState
)
{
return
null
;
}
return
super
.
noSuchMethod
(
invocation
);
}
@override
List
<
Cookie
>
get
cookies
=>
null
;
...
...
packages/flutter_tools/lib/src/base/io.dart
View file @
52fc807d
...
...
@@ -47,7 +47,8 @@ export 'dart:io'
HttpClient
,
HttpClientRequest
,
HttpClientResponse
,
HttpClientResponseCompressionState
,
// TODO(tvolkert): Uncomment (flutter/flutter#33791)
//HttpClientResponseCompressionState,
HttpHeaders
,
HttpRequest
,
HttpServer
,
...
...
packages/flutter_tools/test/commands/create_test.dart
View file @
52fc807d
...
...
@@ -1257,10 +1257,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
@override
String
get
reasonPhrase
=>
'<reason phrase>'
;
// TODO(tvolkert): Update (flutter/flutter#33791)
/*
@override
HttpClientResponseCompressionState get compressionState {
return HttpClientResponseCompressionState.decompressed;
}
*/
@override
StreamSubscription
<
List
<
int
>>
listen
(
...
...
@@ -1275,6 +1278,10 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
@override
dynamic
noSuchMethod
(
Invocation
invocation
)
{
// TODO(tvolkert): Update (flutter/flutter#33791)
if
(
invocation
.
memberName
==
#compressionState
)
{
return
null
;
}
throw
'io.HttpClientResponse -
$invocation
'
;
}
}
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