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
7ef52267
Unverified
Commit
7ef52267
authored
Dec 01, 2021
by
Chris Wong
Committed by
GitHub
Dec 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate to `process` 4.2.4 (#92630)
parent
6b93dc5c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
flutter_goldens_test.dart
packages/flutter_goldens/test/flutter_goldens_test.dart
+2
-2
error_handling_io.dart
packages/flutter_tools/lib/src/base/error_handling_io.dart
+4
-4
fake_process_manager.dart
packages/flutter_tools/test/src/fake_process_manager.dart
+9
-9
ssh_command_runner_test.dart
...ug_protocol/test/src/runners/ssh_command_runner_test.dart
+2
-2
No files found.
packages/flutter_goldens/test/flutter_goldens_test.dart
View file @
7ef52267
...
...
@@ -682,8 +682,8 @@ class FakeProcessManager extends Fake implements ProcessManager {
Map
<
String
,
String
>?
environment
,
bool
includeParentEnvironment
=
true
,
bool
runInShell
=
false
,
Encoding
stdoutEncoding
=
systemEncoding
,
Encoding
stderrEncoding
=
systemEncoding
,
Encoding
?
stdoutEncoding
=
systemEncoding
,
Encoding
?
stderrEncoding
=
systemEncoding
,
})
async
{
workingDirectories
.
add
(
workingDirectory
);
final
ProcessResult
?
result
=
processResults
[
RunInvocation
(
command
.
cast
<
String
>(),
workingDirectory
)];
...
...
packages/flutter_tools/lib/src/base/error_handling_io.dart
View file @
7ef52267
...
...
@@ -662,8 +662,8 @@ class ErrorHandlingProcessManager extends ProcessManager {
Map
<
String
,
String
>?
environment
,
bool
includeParentEnvironment
=
true
,
bool
runInShell
=
false
,
Encoding
stdoutEncoding
=
io
.
systemEncoding
,
Encoding
stderrEncoding
=
io
.
systemEncoding
,
Encoding
?
stdoutEncoding
=
io
.
systemEncoding
,
Encoding
?
stderrEncoding
=
io
.
systemEncoding
,
})
{
return
_run
(()
{
return
_delegate
.
run
(
...
...
@@ -705,8 +705,8 @@ class ErrorHandlingProcessManager extends ProcessManager {
Map
<
String
,
String
>?
environment
,
bool
includeParentEnvironment
=
true
,
bool
runInShell
=
false
,
Encoding
stdoutEncoding
=
io
.
systemEncoding
,
Encoding
stderrEncoding
=
io
.
systemEncoding
,
Encoding
?
stdoutEncoding
=
io
.
systemEncoding
,
Encoding
?
stderrEncoding
=
io
.
systemEncoding
,
})
{
return
_runSync
(()
{
return
_delegate
.
runSync
(
...
...
packages/flutter_tools/test/src/fake_process_manager.dart
View file @
7ef52267
...
...
@@ -108,7 +108,7 @@ class FakeCommand {
List
<
String
>
command
,
String
?
workingDirectory
,
Map
<
String
,
String
>?
environment
,
Encoding
encoding
,
Encoding
?
encoding
,
)
{
expect
(
command
,
equals
(
this
.
command
));
if
(
this
.
workingDirectory
!=
null
)
{
...
...
@@ -244,7 +244,7 @@ abstract class FakeProcessManager implements ProcessManager {
List
<
String
>
command
,
String
?
workingDirectory
,
Map
<
String
,
String
>?
environment
,
Encoding
encoding
,
Encoding
?
encoding
,
);
int
_pid
=
9999
;
...
...
@@ -253,7 +253,7 @@ abstract class FakeProcessManager implements ProcessManager {
List
<
String
>
command
,
String
?
workingDirectory
,
Map
<
String
,
String
>?
environment
,
Encoding
encoding
,
Encoding
?
encoding
,
)
{
_pid
+=
1
;
final
FakeCommand
fakeCommand
=
findCommand
(
command
,
workingDirectory
,
environment
,
encoding
);
...
...
@@ -301,8 +301,8 @@ abstract class FakeProcessManager implements ProcessManager {
Map
<
String
,
String
>?
environment
,
bool
includeParentEnvironment
=
true
,
// ignored
bool
runInShell
=
false
,
// ignored
Encoding
stdoutEncoding
=
io
.
systemEncoding
,
Encoding
stderrEncoding
=
io
.
systemEncoding
,
Encoding
?
stdoutEncoding
=
io
.
systemEncoding
,
Encoding
?
stderrEncoding
=
io
.
systemEncoding
,
})
async
{
final
_FakeProcess
process
=
_runCommand
(
command
.
cast
<
String
>(),
workingDirectory
,
environment
,
stdoutEncoding
);
await
process
.
exitCode
;
...
...
@@ -321,8 +321,8 @@ abstract class FakeProcessManager implements ProcessManager {
Map
<
String
,
String
>?
environment
,
bool
includeParentEnvironment
=
true
,
// ignored
bool
runInShell
=
false
,
// ignored
Encoding
stdoutEncoding
=
io
.
systemEncoding
,
// actual encoder is ignored
Encoding
stderrEncoding
=
io
.
systemEncoding
,
// actual encoder is ignored
Encoding
?
stdoutEncoding
=
io
.
systemEncoding
,
// actual encoder is ignored
Encoding
?
stderrEncoding
=
io
.
systemEncoding
,
// actual encoder is ignored
})
{
final
_FakeProcess
process
=
_runCommand
(
command
.
cast
<
String
>(),
workingDirectory
,
environment
,
stdoutEncoding
);
return
io
.
ProcessResult
(
...
...
@@ -361,7 +361,7 @@ class _FakeAnyProcessManager extends FakeProcessManager {
List
<
String
>
command
,
String
?
workingDirectory
,
Map
<
String
,
String
>?
environment
,
Encoding
encoding
,
Encoding
?
encoding
,
)
{
return
FakeCommand
(
command:
command
,
...
...
@@ -391,7 +391,7 @@ class _SequenceProcessManager extends FakeProcessManager {
List
<
String
>
command
,
String
?
workingDirectory
,
Map
<
String
,
String
>?
environment
,
Encoding
encoding
,
Encoding
?
encoding
,
)
{
expect
(
_commands
,
isNotEmpty
,
reason:
'ProcessManager was told to execute
$command
(in
$workingDirectory
) '
...
...
packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart
View file @
7ef52267
...
...
@@ -136,8 +136,8 @@ class FakeProcessManager extends Fake implements ProcessManager {
Map
<
String
,
String
>?
environment
,
bool
includeParentEnvironment
=
true
,
bool
runInShell
=
false
,
Encoding
stdoutEncoding
=
systemEncoding
,
Encoding
stderrEncoding
=
systemEncoding
,
Encoding
?
stdoutEncoding
=
systemEncoding
,
Encoding
?
stderrEncoding
=
systemEncoding
,
})
async
{
runCommands
.
add
(
command
);
return
fakeResult
!;
...
...
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