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
c02c5538
Commit
c02c5538
authored
Jun 09, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix types for `flutter test` in checked mode (#4488)
Fixes #4059
parent
e190327f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
flutter_platform.dart
packages/flutter_tools/lib/src/test/flutter_platform.dart
+7
-7
No files found.
packages/flutter_tools/lib/src/test/flutter_platform.dart
View file @
c02c5538
...
...
@@ -72,11 +72,11 @@ void _attachStandardStreams(Process process) {
class
FlutterPlatform
extends
PlatformPlugin
{
@override
StreamChannel
<
String
>
loadChannel
(
String
mainPath
,
TestPlatform
platform
)
{
StreamChannel
<
dynamic
>
loadChannel
(
String
mainPath
,
TestPlatform
platform
)
{
return
StreamChannelCompleter
.
fromFuture
(
_startTest
(
mainPath
));
}
Future
<
StreamChannel
<
String
>>
_startTest
(
String
mainPath
)
async
{
Future
<
StreamChannel
<
dynamic
>>
_startTest
(
String
mainPath
)
async
{
_ServerInfo
info
=
await
_startServer
();
Directory
tempDir
=
Directory
.
systemTemp
.
createTempSync
(
'dart_test_listener'
);
...
...
@@ -126,16 +126,16 @@ void main() {
try
{
WebSocket
socket
=
await
info
.
socket
;
StreamChannel
<
String
>
channel
=
new
StreamChannel
<
String
>(
socket
.
map
(
JSON
.
decode
),
socket
);
StreamChannel
<
dynamic
>
channel
=
new
StreamChannel
<
dynamic
>(
socket
.
map
(
JSON
.
decode
),
socket
);
return
channel
.
transformStream
(
new
StreamTransformer
<
String
,
String
>.
fromHandlers
(
handleDone:
(
EventSink
<
String
>
sink
)
{
new
StreamTransformer
<
dynamic
,
dynamic
>.
fromHandlers
(
handleDone:
(
EventSink
<
dynamic
>
sink
)
{
finalize
();
sink
.
close
();
}
)
).
transformSink
(
new
StreamSinkTransformer
<
String
,
String
>.
fromHandlers
(
handleData:
(
String
data
,
StreamSink
<
String
>
sink
)
{
).
transformSink
(
new
StreamSinkTransformer
<
dynamic
,
String
>.
fromHandlers
(
handleData:
(
dynamic
data
,
StreamSink
<
String
>
sink
)
{
sink
.
add
(
JSON
.
encode
(
data
));
},
handleDone:
(
EventSink
<
String
>
sink
)
{
...
...
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