Reland "Add support for Dart Development Service (DDS) in Flutter Tools (#61276)" (#62147)

This reverts commit adc9dde3ba.

- Fixed issue where `FallbackDiscovery` would hold on to a `VmService` when launching on iOS devices, causing DDS to fail to start
- Fixed `flutter drive` case where DDS is already running in another flutter_tools instance
This commit is contained in:
Ben Konyi
2020-07-29 10:05:40 -07:00
committed by GitHub
parent a4d570f0dd
commit 3a5a3eaf68
26 changed files with 225 additions and 32 deletions

View File

@@ -11,6 +11,7 @@ void main() {
macroPerfTest(
'picture_cache_perf',
kPictureCacheRouteName,
timeout: const Duration(seconds: 60),
pageDelay: const Duration(seconds: 1),
driverOps: (FlutterDriver driver) async {
final SerializableFinder tabBarView = find.byValueKey('tabbar_view');

View File

@@ -38,6 +38,10 @@ void main() {
await binding.endOfFrame;
});
tearDownAll(() {
vmService.dispose();
});
test('Image painting events - deduplicates across frames', () async {
final Completer<Event> completer = Completer<Event>();
vmService.onExtensionEvent.first.then(completer.complete);