mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() Work towards https://github.com/flutter/flutter/issues/143299.
Work towards https://github.com/flutter/flutter/issues/160043.
---
This PR implements, end-to-end, support for `matchesGoldenFile` when (a)
running with `package:integration_test` (b) on a device, such as an
Android emulator, Android device, iOS simulator, or iOS device, where
the _runner_ of a test file does not have process and local-file system
access.
There are multiple parts to this PR; I could make it smaller than 1K
lines, but the bulk of that is tests, and it would mean landing PRs that
are incomplete and unused, which does not seem useful - so instead here
is a quick overview of the PR's contents - questions/feedback welcome,
and I am willing to break code out or land incremental refactors if
requested.
1. Augmented `flutter_platform.dart` (used for iOS and Android), similar
to
[`flutter_web_platform.dart`](
|
||
---|---|---|
.. | ||
data | ||
_goldens_io.dart | ||
_goldens_web.dart | ||
binding_fail_test.dart | ||
binding_test.dart | ||
flutter_test_config.dart | ||
golden_screenshot_test.dart | ||
response_serialization_test.dart | ||
socket_fail_test.dart | ||
vm_service_golden_client_test.dart | ||
web_extension_test.dart |