flutter/packages/flutter_tools/test/general.shard/ios
Andrew Kolos 21144362f8
Move platform-specific log-reading implementation details from ResidentRunner/FlutterDevice to DeviceLogReader implementations (#156181)
Cleans up https://github.com/flutter/flutter/pull/155800. In summary, `ResidentRunner`/`FlutterDevice` have branching behavior around logging that depends on the type of `DeviceLogReader` on the `FlutterDevice` instance.  Let's instead move this behavior to the `DeviceLogReader` implementations.

My apologies for the large diff. Much of this is a refactor that was a bit too difficult to separate into its own commits. 

Here are the main two changes

* Replaces the mutable `connectedVmService` field on the `DeviceLogReader` class with a new method `provideVmService`. This serves largely the same purpose as the mutable field, but it allows for asynchronous code. This is where we put the logic that used to exist in `FlutterDevice.tryInitLogReader`.
* Removes the `tryInitLogReader` method from `FlutterDevice`. This method served to set the `appPid` field on the `FlutterDevice`'s `DeviceLogReader` instance. This was only used in the case of Android to filter out logs unrelated to the flutter app coming from the device, so we can move this logic to `AdbLogReader`'s implementation of `provideVmService`.
2024-11-14 21:29:30 +00:00
..
code_signing_test.dart [tool] when writing to openssl as a part of macOS/iOS code-signing, flush the stdin stream before closing it (#150120) 2024-06-28 22:01:04 +00:00
core_devices_test.dart [flutter_tools] add debugging to ios/core_devices.dart (#142187) 2024-01-31 15:36:15 -08:00
devices_test.dart Fixed race condition in PollingDeviceDiscovery. (#145506) 2024-03-21 22:37:08 +00:00
ios_deploy_test.dart Make ios_deploy_test.dart more robust (#153147) 2024-08-09 12:53:15 +02:00
ios_device_install_test.dart Print warning and exit when iOS device is unpaired (#144551) 2024-03-04 23:01:11 +00:00
ios_device_logger_test.dart Move platform-specific log-reading implementation details from ResidentRunner/FlutterDevice to DeviceLogReader implementations (#156181) 2024-11-14 21:29:30 +00:00
ios_device_port_forwarder_test.dart
ios_device_project_test.dart Stop reading .packages from flutter_tools. (#154912) 2024-09-13 13:53:05 +02:00
ios_device_start_nonprebuilt_test.dart Move dart pub deps call to <Pub>.deps and use it accordingly (#158524) 2024-11-13 18:03:53 +00:00
ios_device_start_prebuilt_test.dart Print warning and exit when iOS device is unpaired (#144551) 2024-03-04 23:01:11 +00:00
ios_project_migration_test.dart [tool] Remove some usages of deprecated usage package (#151359) 2024-07-09 18:17:21 +00:00
ios_workflow_test.dart Only show iOS simulators, reduce output spew in verbose (#108345) 2022-07-26 19:08:06 +00:00
mac_test.dart [SwiftPM] Move the logic for SwiftPM enablement to the platform project (#158213) 2024-11-13 21:45:07 +00:00
simulators_test.dart Stop reading .packages from flutter_tools. (#154912) 2024-09-13 13:53:05 +02:00
xcode_debug_test.dart chore: fix some comments (#145397) 2024-03-19 17:00:24 +00:00
xcodeproj_test.dart Remove -sdk for watchOS simulator in tool (#152992) 2024-08-08 19:34:20 +00:00
xcresult_test_data.dart Reland "Print pretty error when xcodebuild fails due to missing simulator #130286" (#130506) 2023-07-13 19:36:10 +00:00
xcresult_test.dart Add xcresulttool --legacy flag for deprecated usage (#152988) 2024-08-07 19:59:11 +00:00