Unverified Commit a82c50f1 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Revert "Migrate xcdevice and ios devices to null safety (#91704)" (#91912)

This reverts commit 00658736.
parent 6c9259ae
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:file/memory.dart'; import 'package:file/memory.dart';
import 'package:meta/meta.dart';
import 'package:process/process.dart'; import 'package:process/process.dart';
import 'base/common.dart'; import 'base/common.dart';
...@@ -281,6 +282,7 @@ abstract class Artifacts { ...@@ -281,6 +282,7 @@ abstract class Artifacts {
/// If a [fileSystem] is not provided, creates a new [MemoryFileSystem] instance. /// If a [fileSystem] is not provided, creates a new [MemoryFileSystem] instance.
/// ///
/// Creates a [LocalEngineArtifacts] if `localEngine` is non-null /// Creates a [LocalEngineArtifacts] if `localEngine` is non-null
@visibleForTesting
factory Artifacts.test({String? localEngine, FileSystem? fileSystem}) { factory Artifacts.test({String? localEngine, FileSystem? fileSystem}) {
fileSystem ??= MemoryFileSystem.test(); fileSystem ??= MemoryFileSystem.test();
if (localEngine != null) { if (localEngine != null) {
......
...@@ -127,6 +127,7 @@ class Cache { ...@@ -127,6 +127,7 @@ class Cache {
/// Defaults to a memory file system, fake platform, /// Defaults to a memory file system, fake platform,
/// buffer logger, and no accessible artifacts. /// buffer logger, and no accessible artifacts.
/// By default, the root cache directory path is "cache". /// By default, the root cache directory path is "cache".
@visibleForTesting
factory Cache.test({ factory Cache.test({
Directory? rootOverride, Directory? rootOverride,
List<ArtifactSet>? artifacts, List<ArtifactSet>? artifacts,
......
...@@ -468,7 +468,7 @@ abstract class Device { ...@@ -468,7 +468,7 @@ abstract class Device {
/// The ID returned matches that in the output of `flutter emulators`. Fetching /// The ID returned matches that in the output of `flutter emulators`. Fetching
/// this name may require connecting to the device and if an error occurs null /// this name may require connecting to the device and if an error occurs null
/// will be returned. /// will be returned.
Future<String?> get emulatorId; Future<String> get emulatorId;
/// Whether this device can run the provided [buildMode]. /// Whether this device can run the provided [buildMode].
/// ///
...@@ -550,7 +550,7 @@ abstract class Device { ...@@ -550,7 +550,7 @@ abstract class Device {
/// reader will also include log messages from before the invocation time. /// reader will also include log messages from before the invocation time.
/// Defaults to false. /// Defaults to false.
FutureOr<DeviceLogReader> getLogReader({ FutureOr<DeviceLogReader> getLogReader({
covariant ApplicationPackage? app, covariant ApplicationPackage app,
bool includePastLogs = false, bool includePastLogs = false,
}); });
...@@ -572,13 +572,13 @@ abstract class Device { ...@@ -572,13 +572,13 @@ abstract class Device {
/// start call. The build mode is not used by all platforms. /// start call. The build mode is not used by all platforms.
Future<LaunchResult> startApp( Future<LaunchResult> startApp(
covariant ApplicationPackage package, { covariant ApplicationPackage package, {
String? mainPath, String mainPath,
String? route, String route,
required DebuggingOptions debuggingOptions, DebuggingOptions debuggingOptions,
Map<String, Object?> platformArgs, Map<String, Object?> platformArgs,
bool prebuiltApplication = false, bool prebuiltApplication = false,
bool ipv6 = false, bool ipv6 = false,
String? userIdentifier, String userIdentifier,
}); });
/// Whether this device implements support for hot reload. /// Whether this device implements support for hot reload.
......
...@@ -7,8 +7,11 @@ ...@@ -7,8 +7,11 @@
import 'base/context.dart'; import 'base/context.dart';
import 'doctor.dart'; import 'doctor.dart';
import 'ios/simulators.dart'; import 'ios/simulators.dart';
import 'macos/xcdevice.dart';
export 'globals_null_migrated.dart'; export 'globals_null_migrated.dart';
Doctor get doctor => context.get<Doctor>(); Doctor get doctor => context.get<Doctor>();
IOSSimulatorUtils get iosSimulatorUtils => context.get<IOSSimulatorUtils>(); IOSSimulatorUtils get iosSimulatorUtils => context.get<IOSSimulatorUtils>();
XCDevice get xcdevice => context.get<XCDevice>();
...@@ -34,7 +34,6 @@ import 'ios/plist_parser.dart'; ...@@ -34,7 +34,6 @@ import 'ios/plist_parser.dart';
import 'ios/xcodeproj.dart'; import 'ios/xcodeproj.dart';
import 'macos/cocoapods.dart'; import 'macos/cocoapods.dart';
import 'macos/cocoapods_validator.dart'; import 'macos/cocoapods_validator.dart';
import 'macos/xcdevice.dart';
import 'macos/xcode.dart'; import 'macos/xcode.dart';
import 'persistent_tool_state.dart'; import 'persistent_tool_state.dart';
import 'project.dart'; import 'project.dart';
...@@ -63,7 +62,6 @@ FlutterVersion get flutterVersion => context.get<FlutterVersion>()!; ...@@ -63,7 +62,6 @@ FlutterVersion get flutterVersion => context.get<FlutterVersion>()!;
FuchsiaArtifacts? get fuchsiaArtifacts => context.get<FuchsiaArtifacts>(); FuchsiaArtifacts? get fuchsiaArtifacts => context.get<FuchsiaArtifacts>();
Usage get flutterUsage => context.get<Usage>()!; Usage get flutterUsage => context.get<Usage>()!;
XcodeProjectInterpreter? get xcodeProjectInterpreter => context.get<XcodeProjectInterpreter>(); XcodeProjectInterpreter? get xcodeProjectInterpreter => context.get<XcodeProjectInterpreter>();
XCDevice? get xcdevice => context.get<XCDevice>();
Xcode? get xcode => context.get<Xcode>(); Xcode? get xcode => context.get<Xcode>();
IOSWorkflow? get iosWorkflow => context.get<IOSWorkflow>(); IOSWorkflow? get iosWorkflow => context.get<IOSWorkflow>();
LocalEngineLocator? get localEngineLocator => context.get<LocalEngineLocator>(); LocalEngineLocator? get localEngineLocator => context.get<LocalEngineLocator>();
......
...@@ -45,16 +45,6 @@ class IMobileDevice { ...@@ -45,16 +45,6 @@ class IMobileDevice {
_processUtils = ProcessUtils(logger: logger, processManager: processManager), _processUtils = ProcessUtils(logger: logger, processManager: processManager),
_processManager = processManager; _processManager = processManager;
/// Create an [IMobileDevice] for testing.
factory IMobileDevice.test({ required ProcessManager processManager }) {
return IMobileDevice(
artifacts: Artifacts.test(),
cache: Cache.test(processManager: processManager),
processManager: processManager,
logger: BufferLogger.test(),
);
}
final String _idevicesyslogPath; final String _idevicesyslogPath;
final String _idevicescreenshotPath; final String _idevicescreenshotPath;
final MapEntry<String, String> _dyLdLibEntry; final MapEntry<String, String> _dyLdLibEntry;
...@@ -103,7 +93,7 @@ class IMobileDevice { ...@@ -103,7 +93,7 @@ class IMobileDevice {
Future<XcodeBuildResult> buildXcodeProject({ Future<XcodeBuildResult> buildXcodeProject({
required BuildableIOSApp app, required BuildableIOSApp app,
required BuildInfo buildInfo, required BuildInfo buildInfo,
String? targetOverride, required String targetOverride,
EnvironmentType environmentType = EnvironmentType.physical, EnvironmentType environmentType = EnvironmentType.physical,
DarwinArch? activeArch, DarwinArch? activeArch,
bool codesign = true, bool codesign = true,
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// @dart = 2.8
import 'dart:async'; import 'dart:async';
import 'dart:io' as io; import 'dart:io' as io;
...@@ -37,17 +39,16 @@ void main() { ...@@ -37,17 +39,16 @@ void main() {
group('IOSDevice', () { group('IOSDevice', () {
final List<Platform> unsupportedPlatforms = <Platform>[linuxPlatform, windowsPlatform]; final List<Platform> unsupportedPlatforms = <Platform>[linuxPlatform, windowsPlatform];
late Cache cache; Cache cache;
late Logger logger; Logger logger;
late IOSDeploy iosDeploy; IOSDeploy iosDeploy;
late IMobileDevice iMobileDevice; IMobileDevice iMobileDevice;
late FileSystem fileSystem; FileSystem nullFileSystem;
setUp(() { setUp(() {
final Artifacts artifacts = Artifacts.test(); final Artifacts artifacts = Artifacts.test();
cache = Cache.test(processManager: FakeProcessManager.any()); cache = Cache.test(processManager: FakeProcessManager.any());
logger = BufferLogger.test(); logger = BufferLogger.test();
fileSystem = MemoryFileSystem.test();
iosDeploy = IOSDeploy( iosDeploy = IOSDeploy(
artifacts: artifacts, artifacts: artifacts,
cache: cache, cache: cache,
...@@ -67,7 +68,7 @@ void main() { ...@@ -67,7 +68,7 @@ void main() {
IOSDevice( IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -83,7 +84,7 @@ void main() { ...@@ -83,7 +84,7 @@ void main() {
expect(IOSDevice( expect(IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -96,7 +97,7 @@ void main() { ...@@ -96,7 +97,7 @@ void main() {
expect(IOSDevice( expect(IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -109,7 +110,7 @@ void main() { ...@@ -109,7 +110,7 @@ void main() {
expect(IOSDevice( expect(IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -122,7 +123,7 @@ void main() { ...@@ -122,7 +123,7 @@ void main() {
expect(IOSDevice( expect(IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -135,7 +136,7 @@ void main() { ...@@ -135,7 +136,7 @@ void main() {
expect(IOSDevice( expect(IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -151,7 +152,7 @@ void main() { ...@@ -151,7 +152,7 @@ void main() {
final IOSDevice device = IOSDevice( final IOSDevice device = IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -169,7 +170,7 @@ void main() { ...@@ -169,7 +170,7 @@ void main() {
final IOSDevice device = IOSDevice( final IOSDevice device = IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -193,7 +194,7 @@ void main() { ...@@ -193,7 +194,7 @@ void main() {
IOSDevice( IOSDevice(
'device-123', 'device-123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: platform, platform: platform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -210,21 +211,21 @@ void main() { ...@@ -210,21 +211,21 @@ void main() {
} }
group('.dispose()', () { group('.dispose()', () {
late IOSDevice device; IOSDevice device;
late FakeIOSApp appPackage1; FakeIOSApp appPackage1;
late FakeIOSApp appPackage2; FakeIOSApp appPackage2;
late IOSDeviceLogReader logReader1; IOSDeviceLogReader logReader1;
late IOSDeviceLogReader logReader2; IOSDeviceLogReader logReader2;
late FakeProcess process1; FakeProcess process1;
late FakeProcess process2; FakeProcess process2;
late FakeProcess process3; FakeProcess process3;
late IOSDevicePortForwarder portForwarder; IOSDevicePortForwarder portForwarder;
late ForwardedPort forwardedPort; ForwardedPort forwardedPort;
late Cache cache; Cache cache;
late Logger logger; Logger logger;
late IOSDeploy iosDeploy; IOSDeploy iosDeploy;
late FileSystem fileSystem; FileSystem nullFileSystem;
late IProxy iproxy; IProxy iproxy;
IOSDevicePortForwarder createPortForwarder( IOSDevicePortForwarder createPortForwarder(
ForwardedPort forwardedPort, ForwardedPort forwardedPort,
...@@ -234,7 +235,7 @@ void main() { ...@@ -234,7 +235,7 @@ void main() {
id: device.id, id: device.id,
logger: logger, logger: logger,
operatingSystemUtils: OperatingSystemUtils( operatingSystemUtils: OperatingSystemUtils(
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: FakePlatform(operatingSystem: 'macos'), platform: FakePlatform(operatingSystem: 'macos'),
processManager: FakeProcessManager.any(), processManager: FakeProcessManager.any(),
...@@ -252,7 +253,7 @@ void main() { ...@@ -252,7 +253,7 @@ void main() {
final IOSDeviceLogReader logReader = IOSDeviceLogReader.create( final IOSDeviceLogReader logReader = IOSDeviceLogReader.create(
device: device, device: device,
app: appPackage, app: appPackage,
iMobileDevice: IMobileDevice.test(processManager: FakeProcessManager.any()), iMobileDevice: null, // not used by this test.
); );
logReader.idevicesyslogProcess = process; logReader.idevicesyslogProcess = process;
return logReader; return logReader;
...@@ -268,8 +269,6 @@ void main() { ...@@ -268,8 +269,6 @@ void main() {
cache = Cache.test( cache = Cache.test(
processManager: FakeProcessManager.any(), processManager: FakeProcessManager.any(),
); );
fileSystem = MemoryFileSystem.test();
logger = BufferLogger.test();
iosDeploy = IOSDeploy( iosDeploy = IOSDeploy(
artifacts: Artifacts.test(), artifacts: Artifacts.test(),
cache: cache, cache: cache,
...@@ -283,7 +282,7 @@ void main() { ...@@ -283,7 +282,7 @@ void main() {
device = IOSDevice( device = IOSDevice(
'123', '123',
iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()), iProxy: IProxy.test(logger: logger, processManager: FakeProcessManager.any()),
fileSystem: fileSystem, fileSystem: nullFileSystem,
logger: logger, logger: logger,
platform: macPlatform, platform: macPlatform,
iosDeploy: iosDeploy, iosDeploy: iosDeploy,
...@@ -310,15 +309,15 @@ void main() { ...@@ -310,15 +309,15 @@ void main() {
}); });
group('polling', () { group('polling', () {
late FakeXcdevice xcdevice; FakeXcdevice xcdevice;
late Cache cache; Cache cache;
late FakeProcessManager fakeProcessManager; FakeProcessManager fakeProcessManager;
late BufferLogger logger; BufferLogger logger;
late IOSDeploy iosDeploy; IOSDeploy iosDeploy;
late IMobileDevice iMobileDevice; IMobileDevice iMobileDevice;
late IOSWorkflow iosWorkflow; IOSWorkflow iosWorkflow;
late IOSDevice device1; IOSDevice device1;
late IOSDevice device2; IOSDevice device2;
setUp(() { setUp(() {
xcdevice = FakeXcdevice(); xcdevice = FakeXcdevice();
...@@ -415,22 +414,22 @@ void main() { ...@@ -415,22 +414,22 @@ void main() {
await iosDevices.startPolling(); await iosDevices.startPolling();
expect(xcdevice.getAvailableIOSDevicesCount, 1); expect(xcdevice.getAvailableIOSDevicesCount, 1);
expect(iosDevices.deviceNotifier!.items, isEmpty); expect(iosDevices.deviceNotifier.items, isEmpty);
expect(xcdevice.deviceEventController.hasListener, isTrue); expect(xcdevice.deviceEventController.hasListener, isTrue);
xcdevice.deviceEventController.add(<XCDeviceEvent, String>{ xcdevice.deviceEventController.add(<XCDeviceEvent, String>{
XCDeviceEvent.attach: 'd83d5bc53967baa0ee18626ba87b6254b2ab5418' XCDeviceEvent.attach: 'd83d5bc53967baa0ee18626ba87b6254b2ab5418'
}); });
await added.future; await added.future;
expect(iosDevices.deviceNotifier!.items.length, 2); expect(iosDevices.deviceNotifier.items.length, 2);
expect(iosDevices.deviceNotifier!.items, contains(device1)); expect(iosDevices.deviceNotifier.items, contains(device1));
expect(iosDevices.deviceNotifier!.items, contains(device2)); expect(iosDevices.deviceNotifier.items, contains(device2));
xcdevice.deviceEventController.add(<XCDeviceEvent, String>{ xcdevice.deviceEventController.add(<XCDeviceEvent, String>{
XCDeviceEvent.detach: 'd83d5bc53967baa0ee18626ba87b6254b2ab5418' XCDeviceEvent.detach: 'd83d5bc53967baa0ee18626ba87b6254b2ab5418'
}); });
await removed.future; await removed.future;
expect(iosDevices.deviceNotifier!.items, <Device>[device2]); expect(iosDevices.deviceNotifier.items, <Device>[device2]);
// Remove stream will throw over-completion if called more than once // Remove stream will throw over-completion if called more than once
// which proves this is ignored. // which proves this is ignored.
...@@ -490,7 +489,7 @@ void main() { ...@@ -490,7 +489,7 @@ void main() {
xcdevice.devices.add(<IOSDevice>[]); xcdevice.devices.add(<IOSDevice>[]);
await iosDevices.startPolling(); await iosDevices.startPolling();
expect(iosDevices.deviceNotifier!.items, isEmpty); expect(iosDevices.deviceNotifier.items, isEmpty);
expect(xcdevice.deviceEventController.hasListener, isTrue); expect(xcdevice.deviceEventController.hasListener, isTrue);
iosDevices.dispose(); iosDevices.dispose();
...@@ -532,9 +531,9 @@ void main() { ...@@ -532,9 +531,9 @@ void main() {
}); });
group('getDiagnostics', () { group('getDiagnostics', () {
late FakeXcdevice xcdevice; FakeXcdevice xcdevice;
late IOSWorkflow iosWorkflow; IOSWorkflow iosWorkflow;
late Logger logger; Logger logger;
setUp(() { setUp(() {
xcdevice = FakeXcdevice(); xcdevice = FakeXcdevice();
...@@ -602,7 +601,7 @@ class FakeXcdevice extends Fake implements XCDevice { ...@@ -602,7 +601,7 @@ class FakeXcdevice extends Fake implements XCDevice {
} }
@override @override
Future<List<IOSDevice>> getAvailableIOSDevices({Duration? timeout}) async { Future<List<IOSDevice>> getAvailableIOSDevices({Duration timeout}) async {
return devices[getAvailableIOSDevicesCount++]; return devices[getAvailableIOSDevicesCount++];
} }
} }
......
...@@ -5,16 +5,12 @@ ...@@ -5,16 +5,12 @@
// @dart = 2.8 // @dart = 2.8
import 'package:file/memory.dart'; import 'package:file/memory.dart';
import 'package:flutter_tools/src/artifacts.dart';
import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/platform.dart';
import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_info.dart';
import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/ios/devices.dart'; import 'package:flutter_tools/src/ios/devices.dart';
import 'package:flutter_tools/src/ios/ios_deploy.dart';
import 'package:flutter_tools/src/ios/iproxy.dart'; import 'package:flutter_tools/src/ios/iproxy.dart';
import 'package:flutter_tools/src/ios/mac.dart';
import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/project.dart';
import '../../src/common.dart'; import '../../src/common.dart';
...@@ -80,26 +76,17 @@ flutter: ...@@ -80,26 +76,17 @@ flutter:
} }
IOSDevice setUpIOSDevice(FileSystem fileSystem) { IOSDevice setUpIOSDevice(FileSystem fileSystem) {
final Platform platform = FakePlatform(operatingSystem: 'macos');
final Logger logger = BufferLogger.test();
final ProcessManager processManager = FakeProcessManager.any();
return IOSDevice( return IOSDevice(
'test', 'test',
fileSystem: fileSystem, fileSystem: fileSystem,
logger: logger, logger: BufferLogger.test(),
iosDeploy: IOSDeploy( iosDeploy: null, // not used in this test
platform: platform, iMobileDevice: null, // not used in this test
logger: logger, platform: FakePlatform(operatingSystem: 'macos'),
processManager: processManager,
artifacts: Artifacts.test(),
cache: Cache.test(processManager: processManager),
),
iMobileDevice: IMobileDevice.test(processManager: processManager),
platform: platform,
name: 'iPhone 1', name: 'iPhone 1',
sdkVersion: '13.3', sdkVersion: '13.3',
cpuArchitecture: DarwinArch.arm64, cpuArchitecture: DarwinArch.arm64,
iProxy: IProxy.test(logger: logger, processManager: processManager), iProxy: IProxy.test(logger: BufferLogger.test(), processManager: FakeProcessManager.any()),
interfaceType: IOSDeviceConnectionInterface.usb, interfaceType: IOSDeviceConnectionInterface.usb,
); );
} }
...@@ -326,7 +326,7 @@ void main() { ...@@ -326,7 +326,7 @@ void main() {
processManager: fakeProcessManager, processManager: fakeProcessManager,
logger: logger, logger: logger,
xcode: xcode, xcode: xcode,
platform: FakePlatform(operatingSystem: 'macos'), platform: null,
artifacts: Artifacts.test(), artifacts: Artifacts.test(),
cache: Cache.test(processManager: FakeProcessManager.any()), cache: Cache.test(processManager: FakeProcessManager.any()),
iproxy: IProxy.test(logger: logger, processManager: fakeProcessManager), iproxy: IProxy.test(logger: logger, processManager: fakeProcessManager),
...@@ -354,7 +354,7 @@ void main() { ...@@ -354,7 +354,7 @@ void main() {
processManager: fakeProcessManager, processManager: fakeProcessManager,
logger: logger, logger: logger,
xcode: xcode, xcode: xcode,
platform: FakePlatform(operatingSystem: 'macos'), platform: null,
artifacts: Artifacts.test(), artifacts: Artifacts.test(),
cache: Cache.test(processManager: FakeProcessManager.any()), cache: Cache.test(processManager: FakeProcessManager.any()),
iproxy: IProxy.test(logger: logger, processManager: fakeProcessManager), iproxy: IProxy.test(logger: logger, processManager: fakeProcessManager),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment