Rename IOSDeviceInterface to IOSDeviceConnectionInterface (#88144)
This commit is contained in:
@@ -76,7 +76,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
sdkVersion: '13.3',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
});
|
||||
|
||||
@@ -92,7 +92,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
sdkVersion: '1.0.0',
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
).majorSdkVersion, 1);
|
||||
expect(IOSDevice(
|
||||
'device-123',
|
||||
@@ -105,7 +105,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
sdkVersion: '13.1.1',
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
).majorSdkVersion, 13);
|
||||
expect(IOSDevice(
|
||||
'device-123',
|
||||
@@ -118,7 +118,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
sdkVersion: '10',
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
).majorSdkVersion, 10);
|
||||
expect(IOSDevice(
|
||||
'device-123',
|
||||
@@ -131,7 +131,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
sdkVersion: '0',
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
).majorSdkVersion, 0);
|
||||
expect(IOSDevice(
|
||||
'device-123',
|
||||
@@ -144,7 +144,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
sdkVersion: 'bogus',
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
).majorSdkVersion, 0);
|
||||
});
|
||||
|
||||
@@ -160,7 +160,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
sdkVersion: '13.3 17C54',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
|
||||
expect(await device.sdkNameAndVersion,'iOS 13.3 17C54');
|
||||
@@ -178,7 +178,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
sdkVersion: '13.3',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
|
||||
expect(device.supportsRuntimeMode(BuildMode.debug), true);
|
||||
@@ -202,7 +202,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
sdkVersion: '13.3',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
},
|
||||
throwsAssertionError,
|
||||
@@ -290,7 +290,7 @@ void main() {
|
||||
name: 'iPhone 1',
|
||||
sdkVersion: '13.3',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
logReader1 = createLogReader(device, appPackage1, process1);
|
||||
logReader2 = createLogReader(device, appPackage2, process2);
|
||||
@@ -351,7 +351,7 @@ void main() {
|
||||
logger: logger,
|
||||
platform: macPlatform,
|
||||
fileSystem: MemoryFileSystem.test(),
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
|
||||
device2 = IOSDevice(
|
||||
@@ -365,7 +365,7 @@ void main() {
|
||||
logger: logger,
|
||||
platform: macPlatform,
|
||||
fileSystem: MemoryFileSystem.test(),
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/platform.dart';
|
||||
import 'package:flutter_tools/src/cache.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 '../../src/common.dart';
|
||||
import '../../src/fake_process_manager.dart';
|
||||
@@ -74,7 +74,7 @@ void main () {
|
||||
bundlePath: '/',
|
||||
appDeltaDirectory: appDeltaDirectory,
|
||||
launchArguments: <String>['--enable-dart-profiling'],
|
||||
interfaceType: IOSDeviceInterface.network,
|
||||
interfaceType: IOSDeviceConnectionInterface.network,
|
||||
);
|
||||
|
||||
expect(await iosDeployDebugger.launchAndAttach(), isTrue);
|
||||
|
||||
@@ -61,7 +61,7 @@ void main() {
|
||||
final IOSDevice device = setUpIOSDevice(
|
||||
processManager: processManager,
|
||||
fileSystem: fileSystem,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
artifacts: artifacts,
|
||||
);
|
||||
final bool wasInstalled = await device.installApp(iosApp);
|
||||
@@ -90,7 +90,7 @@ void main() {
|
||||
final IOSDevice device = setUpIOSDevice(
|
||||
processManager: processManager,
|
||||
fileSystem: fileSystem,
|
||||
interfaceType: IOSDeviceInterface.network,
|
||||
interfaceType: IOSDeviceConnectionInterface.network,
|
||||
artifacts: artifacts,
|
||||
);
|
||||
final bool wasInstalled = await device.installApp(iosApp);
|
||||
@@ -275,7 +275,7 @@ IOSDevice setUpIOSDevice({
|
||||
@required ProcessManager processManager,
|
||||
FileSystem fileSystem,
|
||||
Logger logger,
|
||||
IOSDeviceInterface interfaceType,
|
||||
IOSDeviceConnectionInterface interfaceType,
|
||||
Artifacts artifacts,
|
||||
}) {
|
||||
logger ??= BufferLogger.test();
|
||||
|
||||
@@ -87,6 +87,6 @@ IOSDevice setUpIOSDevice(FileSystem fileSystem) {
|
||||
sdkVersion: '13.3',
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
iProxy: IProxy.test(logger: BufferLogger.test(), processManager: FakeProcessManager.any()),
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ IOSDevice setUpIOSDevice({
|
||||
cache: cache,
|
||||
),
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ IOSDevice setUpIOSDevice({
|
||||
cache: cache,
|
||||
),
|
||||
cpuArchitecture: DarwinArch.arm64,
|
||||
interfaceType: IOSDeviceInterface.usb,
|
||||
interfaceType: IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/process.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/iproxy.dart';
|
||||
import 'package:flutter_tools/src/ios/mac.dart';
|
||||
import 'package:flutter_tools/src/project.dart';
|
||||
import 'package:flutter_tools/src/reporting/reporting.dart';
|
||||
@@ -77,7 +77,7 @@ void main() {
|
||||
expect(() async => iMobileDevice.takeScreenshot(
|
||||
outputFile,
|
||||
'1234',
|
||||
IOSDeviceInterface.usb,
|
||||
IOSDeviceConnectionInterface.usb,
|
||||
), throwsA(anything));
|
||||
expect(fakeProcessManager.hasRemainingExpectations, isFalse);
|
||||
});
|
||||
@@ -100,7 +100,7 @@ void main() {
|
||||
await iMobileDevice.takeScreenshot(
|
||||
outputFile,
|
||||
'1234',
|
||||
IOSDeviceInterface.usb,
|
||||
IOSDeviceConnectionInterface.usb,
|
||||
);
|
||||
expect(fakeProcessManager.hasRemainingExpectations, isFalse);
|
||||
});
|
||||
@@ -123,7 +123,7 @@ void main() {
|
||||
await iMobileDevice.takeScreenshot(
|
||||
outputFile,
|
||||
'1234',
|
||||
IOSDeviceInterface.network,
|
||||
IOSDeviceConnectionInterface.network,
|
||||
);
|
||||
expect(fakeProcessManager.hasRemainingExpectations, isFalse);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user