Add a flutter doctor --android-licenses command that locates and runs the Android SDK license manager (#9892)

See https://github.com/flutter/flutter/issues/8438
This commit is contained in:
Jason Simmons
2017-05-09 10:18:45 -07:00
committed by GitHub
parent 5cec108023
commit f44ba8b9c9
5 changed files with 52 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ void main() {
testUsingContext('flutter commands send timing events', () async {
mockTimes = <int>[1000, 2000];
when(mockDoctor.diagnose()).thenReturn(true);
when(mockDoctor.diagnose(androidLicenses: false)).thenReturn(true);
final DoctorCommand command = new DoctorCommand();
final CommandRunner<Null> runner = createTestCommandRunner(command);
await runner.run(<String>['doctor']);
@@ -112,7 +112,7 @@ void main() {
testUsingContext('doctor fail sends warning', () async {
mockTimes = <int>[1000, 2000];
when(mockDoctor.diagnose()).thenReturn(false);
when(mockDoctor.diagnose(androidLicenses: false)).thenReturn(false);
final DoctorCommand command = new DoctorCommand();
final CommandRunner<Null> runner = createTestCommandRunner(command);
await runner.run(<String>['doctor']);