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
6728cf34
Unverified
Commit
6728cf34
authored
Jun 10, 2021
by
Jonah Williams
Committed by
GitHub
Jun 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] remove more mocks from runner tests (#84312)
parent
67a57eb9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
204 deletions
+136
-204
resident_runner_test.dart
...lutter_tools/test/general.shard/resident_runner_test.dart
+2
-7
resident_web_runner_test.dart
...er_tools/test/general.shard/resident_web_runner_test.dart
+134
-197
No files found.
packages/flutter_tools/test/general.shard/resident_runner_test.dart
View file @
6728cf34
...
...
@@ -143,7 +143,6 @@ final Uri testUri = Uri.parse('foo://bar');
void
main
(
)
{
Testbed
testbed
;
MockFlutterDevice
mockFlutterDevice
;
MockVMService
mockVMService
;
FakeDevFS
mockDevFS
;
ResidentRunner
residentRunner
;
FakeDevice
mockDevice
;
...
...
@@ -168,7 +167,6 @@ void main() {
});
mockFlutterDevice
=
MockFlutterDevice
();
mockDevice
=
FakeDevice
();
mockVMService
=
MockVMService
();
mockDevFS
=
FakeDevFS
();
// FlutterDevice Mocks.
when
(
mockFlutterDevice
.
updateDevFS
(
...
...
@@ -2123,12 +2121,11 @@ void main() {
io
.
CompressionOptions
compression
,
Device
device
,
Logger
logger
,
})
async
=>
mockVM
Service
,
})
async
=>
FakeVmServiceHost
(
requests:
<
VmServiceExpectation
>[]).
vm
Service
,
}));
testUsingContext
(
'Failed DDS start outputs error message'
,
()
=>
testbed
.
run
(()
async
{
// See https://github.com/flutter/flutter/issues/72385 for context.
fakeVmServiceHost
=
FakeVmServiceHost
(
requests:
<
VmServiceExpectation
>[]);
final
FakeDevice
mockDevice
=
FakeDevice
()
..
dds
=
DartDevelopmentService
();
ddsLauncherCallback
=
(
Uri
uri
,
{
bool
enableAuthCodes
,
bool
ipv6
,
Uri
serviceUri
})
{
...
...
@@ -2165,7 +2162,7 @@ void main() {
io
.
CompressionOptions
compression
,
Device
device
,
Logger
logger
,
})
async
=>
mockVM
Service
,
})
async
=>
FakeVmServiceHost
(
requests:
<
VmServiceExpectation
>[]).
vm
Service
,
}));
testUsingContext
(
'nextPlatform moves through expected platforms'
,
()
{
...
...
@@ -2193,8 +2190,6 @@ void main() {
}
class
MockFlutterDevice
extends
Mock
implements
FlutterDevice
{}
class
MockVMService
extends
Mock
implements
FlutterVmService
{}
class
MockDevFS
extends
Mock
implements
DevFS
{}
class
MockResidentCompiler
extends
Mock
implements
ResidentCompiler
{}
class
FakeDartDevelopmentServiceException
implements
dds
.
DartDevelopmentServiceException
{
...
...
packages/flutter_tools/test/general.shard/resident_web_runner_test.dart
View file @
6728cf34
This diff is collapsed.
Click to expand it.
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