Launch named iOS simulators (#72323)

This commit is contained in:
Jenn Magder
2020-12-15 15:06:47 -08:00
committed by GitHub
parent d2d0c73f89
commit 84a7a611b0
11 changed files with 244 additions and 111 deletions

View File

@@ -114,6 +114,7 @@ void testUsingContext(
IOSSimulatorUtils: () {
final MockIOSSimulatorUtils mock = MockIOSSimulatorUtils();
when(mock.getAttachedDevices()).thenAnswer((Invocation _) async => <IOSSimulator>[]);
when(mock.getAvailableDevices()).thenAnswer((Invocation _) async => <IOSSimulator>[]);
return mock;
},
OutputPreferences: () => OutputPreferences.test(),
@@ -286,7 +287,7 @@ class FakeDoctor extends Doctor {
class MockSimControl extends Mock implements SimControl {
MockSimControl() {
when(getConnectedDevices()).thenAnswer((Invocation _) async => <SimDevice>[]);
when(getAvailableDevices()).thenAnswer((Invocation _) async => <SimDevice>[]);
}
}