Don't send accept/reject if compilation never started. (#27319)

* Don't send accept/reject if compilation never started.

Ensure that we wait for reject's response since that is async operation.

Fixes https://github.com/flutter/flutter/issues/27120.

* Fix analysis errors

* Rename flag. Ensure we raise it on first compilation too.
This commit is contained in:
Alexander Aprelev
2019-01-31 17:43:32 -08:00
committed by GitHub
parent cfe992d087
commit 030dc3fade
5 changed files with 80 additions and 8 deletions

View File

@@ -462,7 +462,7 @@ class MockResidentCompiler extends BasicMock implements ResidentCompiler {
void accept() {}
@override
void reject() {}
Future<CompilerOutput> reject() async { return null; }
@override
void reset() {}