select ResidentCompiler during FlutterDevice initialization (#28603)

This commit is contained in:
Jonah Williams
2019-03-07 11:02:42 -08:00
committed by GitHub
parent df465c7718
commit a2d349c4c1
20 changed files with 176 additions and 76 deletions

View File

@@ -30,6 +30,7 @@ void main() {
testUsingContext('delegates to build_runner', () async {
const CodeGeneratingKernelCompiler kernelCompiler = CodeGeneratingKernelCompiler();
when(mockBuildRunner.build(
any,
aot: anyNamed('aot'),
extraFrontEndOptions: anyNamed('extraFrontEndOptions'),
linkPlatformKernelIn: anyNamed('linkPlatformKernelIn'),
@@ -37,7 +38,7 @@ void main() {
targetProductVm: anyNamed('targetProductVm'),
trackWidgetCreation: anyNamed('trackWidgetCreation'),
)).thenAnswer((Invocation invocation) async {
return CodeGenerationResult(fs.file('.packages'), fs.file('main.app.dill'));
return CodeGenerationResult(fs.file('main.app.dill'));
});
final CompilerOutput buildResult = await kernelCompiler.compile(
outputFilePath: 'output.app.dill',