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
5e7f6690
Unverified
Commit
5e7f6690
authored
Mar 11, 2021
by
Jonah Williams
Committed by
GitHub
Mar 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mock from event_printer_test (#77757)
parent
f91ed2a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
event_printer_test.dart
...ter_tools/test/general.shard/test/event_printer_test.dart
+3
-3
No files found.
packages/flutter_tools/test/general.shard/test/event_printer_test.dart
View file @
5e7f6690
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
import
'package:flutter_tools/src/test/event_printer.dart'
;
import
'package:flutter_tools/src/test/event_printer.dart'
;
import
'package:flutter_tools/src/test/test_device.dart'
;
import
'package:flutter_tools/src/test/test_device.dart'
;
import
'package:
mockito/mockito
.dart'
;
import
'package:
test/fake
.dart'
;
import
'../../src/common.dart'
;
import
'../../src/common.dart'
;
...
@@ -22,7 +22,7 @@ void main() {
...
@@ -22,7 +22,7 @@ void main() {
});
});
testWithoutContext
(
'handles a null parent'
,
()
{
testWithoutContext
(
'handles a null parent'
,
()
{
final
_Device
device
=
_
Device
();
final
FakeDevice
device
=
Fake
Device
();
expect
(()
=>
eventPrinter
.
handleFinishedTest
(
device
),
returnsNormally
);
expect
(()
=>
eventPrinter
.
handleFinishedTest
(
device
),
returnsNormally
);
expect
(()
=>
eventPrinter
.
handleStartedDevice
(
observatoryUri
),
returnsNormally
);
expect
(()
=>
eventPrinter
.
handleStartedDevice
(
observatoryUri
),
returnsNormally
);
...
@@ -56,4 +56,4 @@ void main() {
...
@@ -56,4 +56,4 @@ void main() {
});
});
}
}
class
_Device
extends
Mock
implements
TestDevice
{}
class
FakeDevice
extends
Fake
implements
TestDevice
{}
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