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
9805df89
Unverified
Commit
9805df89
authored
May 15, 2021
by
Jonah Williams
Committed by
GitHub
May 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove more mocks (#82592)
parent
a34713fb
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
68 deletions
+87
-68
cache_test.dart
packages/flutter_tools/test/general.shard/cache_test.dart
+82
-67
fakes.dart
packages/flutter_tools/test/src/fakes.dart
+5
-1
No files found.
packages/flutter_tools/test/general.shard/cache_test.dart
View file @
9805df89
This diff is collapsed.
Click to expand it.
packages/flutter_tools/test/src/fakes.dart
View file @
9805df89
...
@@ -498,6 +498,8 @@ class FakeStatusLogger extends DelegatingLogger {
...
@@ -498,6 +498,8 @@ class FakeStatusLogger extends DelegatingLogger {
class
FakeOperatingSystemUtils
extends
Fake
implements
OperatingSystemUtils
{
class
FakeOperatingSystemUtils
extends
Fake
implements
OperatingSystemUtils
{
FakeOperatingSystemUtils
({
this
.
hostPlatform
=
HostPlatform
.
linux_x64
});
FakeOperatingSystemUtils
({
this
.
hostPlatform
=
HostPlatform
.
linux_x64
});
final
List
<
List
<
String
>>
chmods
=
<
List
<
String
>>[];
@override
@override
void
makeExecutable
(
File
file
)
{
}
void
makeExecutable
(
File
file
)
{
}
...
@@ -505,7 +507,9 @@ class FakeOperatingSystemUtils extends Fake implements OperatingSystemUtils {
...
@@ -505,7 +507,9 @@ class FakeOperatingSystemUtils extends Fake implements OperatingSystemUtils {
HostPlatform
hostPlatform
=
HostPlatform
.
linux_x64
;
HostPlatform
hostPlatform
=
HostPlatform
.
linux_x64
;
@override
@override
void
chmod
(
FileSystemEntity
entity
,
String
mode
)
{
}
void
chmod
(
FileSystemEntity
entity
,
String
mode
)
{
chmods
.
add
(<
String
>[
entity
.
path
,
mode
]);
}
@override
@override
File
?
which
(
String
execName
)
=>
null
;
File
?
which
(
String
execName
)
=>
null
;
...
...
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