Add a virtual-display (VD) platform view test, and refactor tests a bit. (#161349)

Towards https://github.com/flutter/flutter/issues/161261.

Still need to add a HC (Hybrid Composition) variant, but figured I'd do
this incrementally to make it easier to review.
This commit is contained in:
Matan Lurey
2025-01-09 19:23:40 -08:00
committed by GitHub
parent 99fe90a05e
commit 89b336109f
15 changed files with 250 additions and 16 deletions

View File

@@ -71,6 +71,12 @@ final class AndroidNativeDriver implements NativeDriver {
await _driver.sendCommand(NativeCommand.tap(finder));
}
@override
Future<int> get sdkVersion async {
final Map<String, Object?> result = await _driver.sendCommand(NativeCommand.getSdkVersion);
return result['version']! as int;
}
/// Waits for 2 seconds before completing.
///
/// There is no perfect way, outside of polling, to know when the device is