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
be8989f1
Unverified
Commit
be8989f1
authored
Mar 10, 2021
by
Jonah Williams
Committed by
GitHub
Mar 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] remove mock processes from batch compile_test (#77731)
parent
07e04484
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
240 additions
and
136 deletions
+240
-136
compile.dart
packages/flutter_tools/lib/src/compile.dart
+6
-3
compile_batch_test.dart
.../flutter_tools/test/general.shard/compile_batch_test.dart
+234
-133
No files found.
packages/flutter_tools/lib/src/compile.dart
View file @
be8989f1
...
...
@@ -184,12 +184,14 @@ class KernelCompiler {
@required
Artifacts
artifacts
,
@required
List
<
String
>
fileSystemRoots
,
@required
String
fileSystemScheme
,
@visibleForTesting
StdoutHandler
stdoutHandler
,
})
:
_logger
=
logger
,
_fileSystem
=
fileSystem
,
_artifacts
=
artifacts
,
_processManager
=
processManager
,
_fileSystemScheme
=
fileSystemScheme
,
_fileSystemRoots
=
fileSystemRoots
;
_fileSystemRoots
=
fileSystemRoots
,
_stdoutHandler
=
stdoutHandler
??
StdoutHandler
(
logger:
logger
);
final
FileSystem
_fileSystem
;
final
Artifacts
_artifacts
;
...
...
@@ -197,6 +199,7 @@ class KernelCompiler {
final
Logger
_logger
;
final
String
_fileSystemScheme
;
final
List
<
String
>
_fileSystemRoots
;
final
StdoutHandler
_stdoutHandler
;
Future
<
CompilerOutput
>
compile
({
String
sdkRoot
,
...
...
@@ -310,7 +313,6 @@ class KernelCompiler {
_logger
.
printTrace
(
command
.
join
(
' '
));
final
Process
server
=
await
_processManager
.
start
(
command
);
final
StdoutHandler
_stdoutHandler
=
StdoutHandler
(
logger:
_logger
);
server
.
stderr
.
transform
<
String
>(
utf8
.
decoder
)
.
listen
(
_logger
.
printError
);
...
...
@@ -540,11 +542,12 @@ class DefaultResidentCompiler implements ResidentCompiler {
this
.
platformDill
,
List
<
String
>
dartDefines
,
this
.
librariesSpec
,
@visibleForTesting
StdoutHandler
stdoutHandler
,
})
:
assert
(
sdkRoot
!=
null
),
_logger
=
logger
,
_processManager
=
processManager
,
_artifacts
=
artifacts
,
_stdoutHandler
=
StdoutHandler
(
logger:
logger
),
_stdoutHandler
=
stdoutHandler
??
StdoutHandler
(
logger:
logger
),
_platform
=
platform
,
dartDefines
=
dartDefines
??
const
<
String
>[],
// This is a URI, not a file path, so the forward slash is correct even on Windows.
...
...
packages/flutter_tools/test/general.shard/compile_batch_test.dart
View file @
be8989f1
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