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
741e9675
Unverified
Commit
741e9675
authored
Jul 17, 2020
by
Konstantin Scheglov
Committed by
GitHub
Jul 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remote returns for function expression inferred return type void. (#61582)
parent
1840b712
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
10 deletions
+8
-10
default_binary_messenger_test.dart
.../flutter/test/services/default_binary_messenger_test.dart
+0
-1
devfs.dart
packages/flutter_tools/lib/src/devfs.dart
+1
-1
attach_test.dart
...utter_tools/test/commands.shard/hermetic/attach_test.dart
+4
-4
drive_test.dart
...lutter_tools/test/commands.shard/hermetic/drive_test.dart
+0
-1
application_package_test.dart
...er_tools/test/general.shard/application_package_test.dart
+2
-2
version_test.dart
packages/flutter_tools/test/general.shard/version_test.dart
+1
-1
No files found.
packages/flutter/test/services/default_binary_messenger_test.dart
View file @
741e9675
...
...
@@ -26,7 +26,6 @@ void main() {
ServicesBinding
.
instance
.
defaultBinaryMessenger
.
handlePlatformMessage
(
channel
,
_makeByteData
(
'bar'
),
(
ByteData
message
)
async
{
count
+=
1
;
return
null
;
});
expect
(
count
,
equals
(
0
));
await
ui
.
channelBuffers
.
drain
(
channel
,
...
...
packages/flutter_tools/lib/src/devfs.dart
View file @
741e9675
...
...
@@ -271,7 +271,7 @@ class _DevFSHttpWriter {
);
await
request
.
addStream
(
contents
);
final
HttpClientResponse
response
=
await
request
.
close
();
response
.
listen
((
_
)
=>
null
,
response
.
listen
((
_
)
{}
,
onError:
(
dynamic
error
)
{
_logger
.
printTrace
(
'error:
$error
'
);
},
...
...
packages/flutter_tools/test/commands.shard/hermetic/attach_test.dart
View file @
741e9675
...
...
@@ -85,7 +85,7 @@ void main() {
when
(
portForwarder
.
forwardedPorts
)
.
thenReturn
(<
ForwardedPort
>[
ForwardedPort
(
hostPort
,
devicePort
)]);
when
(
portForwarder
.
unforward
(
any
))
.
thenAnswer
((
_
)
async
=>
null
);
.
thenAnswer
((
_
)
async
{}
);
final
HttpClientRequest
httpClientRequest
=
MockHttpClientRequest
();
httpClient
=
MockHttpClient
();
...
...
@@ -296,7 +296,7 @@ void main() {
when
(
portForwarder
.
forwardedPorts
)
.
thenReturn
(<
ForwardedPort
>[
ForwardedPort
(
hostPort
,
devicePort
)]);
when
(
portForwarder
.
unforward
(
any
))
.
thenAnswer
((
_
)
async
=>
null
);
.
thenAnswer
((
_
)
async
{}
);
when
(
mockHotRunner
.
attach
(
appStartedCompleter:
anyNamed
(
'appStartedCompleter'
)))
.
thenAnswer
((
_
)
async
=>
0
);
when
(
mockHotRunnerFactory
.
build
(
...
...
@@ -370,7 +370,7 @@ void main() {
when
(
portForwarder
.
forwardedPorts
)
.
thenReturn
(<
ForwardedPort
>[
ForwardedPort
(
hostPort
,
devicePort
)]);
when
(
portForwarder
.
unforward
(
any
))
.
thenAnswer
((
_
)
async
=>
null
);
.
thenAnswer
((
_
)
async
{}
);
when
(
mockHotRunner
.
attach
(
appStartedCompleter:
anyNamed
(
'appStartedCompleter'
)))
.
thenAnswer
((
_
)
async
=>
0
);
when
(
mockHotRunnerFactory
.
build
(
...
...
@@ -424,7 +424,7 @@ void main() {
when
(
portForwarder
.
forwardedPorts
)
.
thenReturn
(<
ForwardedPort
>[
ForwardedPort
(
hostPort
,
devicePort
)]);
when
(
portForwarder
.
unforward
(
any
))
.
thenAnswer
((
_
)
async
=>
null
);
.
thenAnswer
((
_
)
async
{}
);
});
testUsingContext
(
'succeeds in ipv4 mode'
,
()
async
{
...
...
packages/flutter_tools/test/commands.shard/hermetic/drive_test.dart
View file @
741e9675
...
...
@@ -202,7 +202,6 @@ void main() {
expect
(
environment
,
<
String
,
String
>{
'VM_SERVICE_URL'
:
'null'
,
});
return
null
;
});
appStopper
=
expectAsync1
((
DriveCommand
command
)
async
{
return
true
;
...
...
packages/flutter_tools/test/general.shard/application_package_test.dart
View file @
741e9675
...
...
@@ -295,7 +295,7 @@ void main() {
when
(
os
.
unzip
(
any
,
any
)).
thenAnswer
((
Invocation
invocation
)
{
final
File
zipFile
=
invocation
.
positionalArguments
[
0
]
as
File
;
if
(
zipFile
.
path
!=
'app.ipa'
)
{
return
null
;
return
;
}
final
Directory
targetDirectory
=
invocation
.
positionalArguments
[
1
]
as
Directory
;
final
String
bundlePath1
=
...
...
@@ -316,7 +316,7 @@ void main() {
when
(
os
.
unzip
(
any
,
any
)).
thenAnswer
((
Invocation
invocation
)
{
final
File
zipFile
=
invocation
.
positionalArguments
[
0
]
as
File
;
if
(
zipFile
.
path
!=
'app.ipa'
)
{
return
null
;
return
;
}
final
Directory
targetDirectory
=
invocation
.
positionalArguments
[
1
]
as
Directory
;
final
Directory
bundleAppDir
=
globals
.
fs
.
directory
(
...
...
packages/flutter_tools/test/general.shard/version_test.dart
View file @
741e9675
...
...
@@ -655,7 +655,7 @@ void fakeData(
if
(
expectSetStamp
)
{
stamp
=
VersionCheckStamp
.
fromJson
(
castStringKeyedMap
(
json
.
decode
(
invocation
.
positionalArguments
[
1
]
as
String
)));
return
null
;
return
;
}
throw
StateError
(
'Unexpected call to Cache.setStampFor(
${invocation.positionalArguments}
,
${invocation.namedArguments}
)'
);
...
...
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