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
15b9b58e
Unverified
Commit
15b9b58e
authored
Apr 07, 2021
by
Jenn Magder
Committed by
GitHub
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove MockStdIn and MockStream (#78276)
parent
24258141
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
171 additions
and
165 deletions
+171
-165
compile_incremental_test.dart
...er_tools/test/general.shard/compile_incremental_test.dart
+171
-143
mocks.dart
packages/flutter_tools/test/src/mocks.dart
+0
-22
No files found.
packages/flutter_tools/test/general.shard/compile_incremental_test.dart
View file @
15b9b58e
This diff is collapsed.
Click to expand it.
packages/flutter_tools/test/src/mocks.dart
View file @
15b9b58e
...
...
@@ -201,25 +201,3 @@ class MockIOSDevice extends Mock implements IOSDevice {
@override
bool
isSupportedForProject
(
FlutterProject
flutterProject
)
=>
true
;
}
class
MockStdIn
extends
Mock
implements
IOSink
{
final
StringBuffer
stdInWrites
=
StringBuffer
();
String
getAndClear
()
{
final
String
result
=
stdInWrites
.
toString
();
stdInWrites
.
clear
();
return
result
;
}
@override
void
write
([
Object
o
=
''
])
{
stdInWrites
.
write
(
o
);
}
@override
void
writeln
([
Object
o
=
''
])
{
stdInWrites
.
writeln
(
o
);
}
}
class
MockStream
extends
Mock
implements
Stream
<
List
<
int
>>
{}
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