Unverified Commit a1a5a8f6 authored by Ben Konyi's avatar Ben Konyi Committed by GitHub

Revert "Reland "Add support for Dart Development Service (DDS) in Flutter...

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

This reverts commit f98184e4.
parent e78cbe5d
...@@ -38,10 +38,6 @@ void main() { ...@@ -38,10 +38,6 @@ void main() {
await binding.endOfFrame; await binding.endOfFrame;
}); });
tearDownAll(() {
vmService.dispose();
});
test('Image painting events - deduplicates across frames', () async { test('Image painting events - deduplicates across frames', () async {
final Completer<Event> completer = Completer<Event>(); final Completer<Event> completer = Completer<Event>();
vmService.onExtensionEvent.first.then(completer.complete); vmService.onExtensionEvent.first.then(completer.complete);
......
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:dds/dds.dart' as dds;
import 'package:meta/meta.dart';
import 'io.dart' as io;
import 'logger.dart';
/// Helper class to launch a [dds.DartDevelopmentService]. Allows for us to
/// mock out this functionality for testing purposes.
class DartDevelopmentService {
DartDevelopmentService({@required this.logger});
final Logger logger;
dds.DartDevelopmentService _ddsInstance;
Future<void> startDartDevelopmentService(
Uri observatoryUri,
bool ipv6,
) async {
final Uri ddsUri = Uri(
scheme: 'http',
host: (ipv6 ?
io.InternetAddress.loopbackIPv6 :
io.InternetAddress.loopbackIPv4
).host,
port: 0,
);
logger.printTrace(
'Launching a Dart Developer Service (DDS) instance at $ddsUri, '
'connecting to VM service at $observatoryUri.',
);
try {
_ddsInstance = await dds.DartDevelopmentService.startDartDevelopmentService(
observatoryUri,
serviceUri: ddsUri,
);
logger.printTrace('DDS is listening at ${_ddsInstance.uri}.');
} on dds.DartDevelopmentServiceException catch (e) {
logger.printError('Warning: Failed to start DDS: ${e.message}');
}
}
Future<void> shutdown() async => await _ddsInstance?.shutdown();
}
...@@ -100,7 +100,6 @@ class AttachCommand extends FlutterCommand { ...@@ -100,7 +100,6 @@ class AttachCommand extends FlutterCommand {
'and progress in machine friendly format.', 'and progress in machine friendly format.',
); );
usesTrackWidgetCreation(verboseHelp: verboseHelp); usesTrackWidgetCreation(verboseHelp: verboseHelp);
addDdsOptions(verboseHelp: verboseHelp);
hotRunnerFactory ??= HotRunnerFactory(); hotRunnerFactory ??= HotRunnerFactory();
} }
...@@ -373,7 +372,7 @@ class AttachCommand extends FlutterCommand { ...@@ -373,7 +372,7 @@ class AttachCommand extends FlutterCommand {
); );
flutterDevice.observatoryUris = observatoryUris; flutterDevice.observatoryUris = observatoryUris;
final List<FlutterDevice> flutterDevices = <FlutterDevice>[flutterDevice]; final List<FlutterDevice> flutterDevices = <FlutterDevice>[flutterDevice];
final DebuggingOptions debuggingOptions = DebuggingOptions.enabled(getBuildInfo(), disableDds: boolArg('disable-dds')); final DebuggingOptions debuggingOptions = DebuggingOptions.enabled(getBuildInfo());
return getBuildInfo().isDebug return getBuildInfo().isDebug
? hotRunnerFactory.build( ? hotRunnerFactory.build(
......
...@@ -244,10 +244,6 @@ class DriveCommand extends RunCommandBase { ...@@ -244,10 +244,6 @@ class DriveCommand extends RunCommandBase {
throwToolExit('Application failed to start. Will not run test. Quitting.', exitCode: 1); throwToolExit('Application failed to start. Will not run test. Quitting.', exitCode: 1);
} }
observatoryUri = result.observatoryUri.toString(); observatoryUri = result.observatoryUri.toString();
// TODO(bkonyi): add web support (https://github.com/flutter/flutter/issues/61259)
if (!isWebPlatform) {
await device.dds.startDartDevelopmentService(Uri.parse(observatoryUri), ipv6);
}
} else { } else {
globals.printStatus('Will connect to already running application instance.'); globals.printStatus('Will connect to already running application instance.');
observatoryUri = stringArg('use-existing-app'); observatoryUri = stringArg('use-existing-app');
......
...@@ -218,7 +218,6 @@ class RunCommand extends RunCommandBase { ...@@ -218,7 +218,6 @@ class RunCommand extends RunCommandBase {
'Currently this is only supported on Android devices. This option ' 'Currently this is only supported on Android devices. This option '
'cannot be paired with --use-application-binary.' 'cannot be paired with --use-application-binary.'
); );
addDdsOptions(verboseHelp: verboseHelp);
} }
@override @override
...@@ -385,7 +384,6 @@ class RunCommand extends RunCommandBase { ...@@ -385,7 +384,6 @@ class RunCommand extends RunCommandBase {
buildInfo, buildInfo,
startPaused: boolArg('start-paused'), startPaused: boolArg('start-paused'),
disableServiceAuthCodes: boolArg('disable-service-auth-codes'), disableServiceAuthCodes: boolArg('disable-service-auth-codes'),
disableDds: boolArg('disable-dds'),
dartFlags: stringArg('dart-flags') ?? '', dartFlags: stringArg('dart-flags') ?? '',
useTestFonts: boolArg('use-test-fonts'), useTestFonts: boolArg('use-test-fonts'),
enableSoftwareRendering: boolArg('enable-software-rendering'), enableSoftwareRendering: boolArg('enable-software-rendering'),
......
...@@ -16,7 +16,6 @@ import 'application_package.dart'; ...@@ -16,7 +16,6 @@ import 'application_package.dart';
import 'artifacts.dart'; import 'artifacts.dart';
import 'base/config.dart'; import 'base/config.dart';
import 'base/context.dart'; import 'base/context.dart';
import 'base/dds.dart';
import 'base/file_system.dart'; import 'base/file_system.dart';
import 'base/io.dart'; import 'base/io.dart';
import 'base/logger.dart'; import 'base/logger.dart';
...@@ -548,12 +547,6 @@ abstract class Device { ...@@ -548,12 +547,6 @@ abstract class Device {
/// Get the port forwarder for this device. /// Get the port forwarder for this device.
DevicePortForwarder get portForwarder; DevicePortForwarder get portForwarder;
/// Get the DDS instance for this device.
DartDevelopmentService get dds => _dds ??= DartDevelopmentService(
logger: globals.logger,
);
DartDevelopmentService _dds;
/// Clear the device's logs. /// Clear the device's logs.
void clearLogs(); void clearLogs();
...@@ -727,7 +720,6 @@ class DebuggingOptions { ...@@ -727,7 +720,6 @@ class DebuggingOptions {
this.buildInfo, { this.buildInfo, {
this.startPaused = false, this.startPaused = false,
this.disableServiceAuthCodes = false, this.disableServiceAuthCodes = false,
this.disableDds = false,
this.dartFlags = '', this.dartFlags = '',
this.enableSoftwareRendering = false, this.enableSoftwareRendering = false,
this.skiaDeterministicRendering = false, this.skiaDeterministicRendering = false,
...@@ -770,7 +762,6 @@ class DebuggingOptions { ...@@ -770,7 +762,6 @@ class DebuggingOptions {
startPaused = false, startPaused = false,
dartFlags = '', dartFlags = '',
disableServiceAuthCodes = false, disableServiceAuthCodes = false,
disableDds = false,
enableSoftwareRendering = false, enableSoftwareRendering = false,
skiaDeterministicRendering = false, skiaDeterministicRendering = false,
traceSkia = false, traceSkia = false,
...@@ -790,7 +781,6 @@ class DebuggingOptions { ...@@ -790,7 +781,6 @@ class DebuggingOptions {
final bool startPaused; final bool startPaused;
final String dartFlags; final String dartFlags;
final bool disableServiceAuthCodes; final bool disableServiceAuthCodes;
final bool disableDds;
final bool enableSoftwareRendering; final bool enableSoftwareRendering;
final bool skiaDeterministicRendering; final bool skiaDeterministicRendering;
final bool traceSkia; final bool traceSkia;
......
...@@ -52,13 +52,6 @@ Future<vm_service.VmService> _kDefaultFuchsiaIsolateDiscoveryConnector(Uri uri) ...@@ -52,13 +52,6 @@ Future<vm_service.VmService> _kDefaultFuchsiaIsolateDiscoveryConnector(Uri uri)
return connectToVmService(uri); return connectToVmService(uri);
} }
Future<void> _kDefaultDartDevelopmentServiceStarter(
Device device,
Uri observatoryUri,
) async {
await device.dds.startDartDevelopmentService(observatoryUri, true);
}
/// Read the log for a particular device. /// Read the log for a particular device.
class _FuchsiaLogReader extends DeviceLogReader { class _FuchsiaLogReader extends DeviceLogReader {
_FuchsiaLogReader(this._device, this._systemClock, [this._app]); _FuchsiaLogReader(this._device, this._systemClock, [this._app]);
...@@ -702,7 +695,6 @@ class FuchsiaIsolateDiscoveryProtocol { ...@@ -702,7 +695,6 @@ class FuchsiaIsolateDiscoveryProtocol {
this._device, this._device,
this._isolateName, [ this._isolateName, [
this._vmServiceConnector = _kDefaultFuchsiaIsolateDiscoveryConnector, this._vmServiceConnector = _kDefaultFuchsiaIsolateDiscoveryConnector,
this._ddsStarter = _kDefaultDartDevelopmentServiceStarter,
this._pollOnce = false, this._pollOnce = false,
]); ]);
...@@ -712,7 +704,6 @@ class FuchsiaIsolateDiscoveryProtocol { ...@@ -712,7 +704,6 @@ class FuchsiaIsolateDiscoveryProtocol {
final String _isolateName; final String _isolateName;
final Completer<Uri> _foundUri = Completer<Uri>(); final Completer<Uri> _foundUri = Completer<Uri>();
final Future<vm_service.VmService> Function(Uri) _vmServiceConnector; final Future<vm_service.VmService> Function(Uri) _vmServiceConnector;
final Future<void> Function(Device, Uri) _ddsStarter;
// whether to only poll once. // whether to only poll once.
final bool _pollOnce; final bool _pollOnce;
Timer _pollingTimer; Timer _pollingTimer;
...@@ -755,7 +746,6 @@ class FuchsiaIsolateDiscoveryProtocol { ...@@ -755,7 +746,6 @@ class FuchsiaIsolateDiscoveryProtocol {
final int localPort = await _device.portForwarder.forward(port); final int localPort = await _device.portForwarder.forward(port);
try { try {
final Uri uri = Uri.parse('http://[$_ipv6Loopback]:$localPort'); final Uri uri = Uri.parse('http://[$_ipv6Loopback]:$localPort');
await _ddsStarter(_device, uri);
service = await _vmServiceConnector(uri); service = await _vmServiceConnector(uri);
_ports[port] = service; _ports[port] = service;
} on SocketException catch (err) { } on SocketException catch (err) {
......
...@@ -437,7 +437,7 @@ class IOSDevice extends Device { ...@@ -437,7 +437,7 @@ class IOSDevice extends Device {
); );
final Uri localUri = await fallbackDiscovery.discover( final Uri localUri = await fallbackDiscovery.discover(
assumedDevicePort: assumedObservatoryPort, assumedDevicePort: assumedObservatoryPort,
device: this, deivce: this,
usesIpv6: ipv6, usesIpv6: ipv6,
hostVmservicePort: debuggingOptions.hostVmServicePort, hostVmservicePort: debuggingOptions.hostVmServicePort,
packageId: packageId, packageId: packageId,
......
...@@ -67,7 +67,7 @@ class FallbackDiscovery { ...@@ -67,7 +67,7 @@ class FallbackDiscovery {
Future<Uri> discover({ Future<Uri> discover({
@required int assumedDevicePort, @required int assumedDevicePort,
@required String packageId, @required String packageId,
@required Device device, @required Device deivce,
@required bool usesIpv6, @required bool usesIpv6,
@required int hostVmservicePort, @required int hostVmservicePort,
@required String packageName, @required String packageName,
...@@ -84,7 +84,7 @@ class FallbackDiscovery { ...@@ -84,7 +84,7 @@ class FallbackDiscovery {
try { try {
final Uri result = await _mDnsObservatoryDiscovery.getObservatoryUri( final Uri result = await _mDnsObservatoryDiscovery.getObservatoryUri(
packageId, packageId,
device, deivce,
usesIpv6: usesIpv6, usesIpv6: usesIpv6,
hostVmservicePort: hostVmservicePort, hostVmservicePort: hostVmservicePort,
); );
......
...@@ -211,8 +211,6 @@ class FlutterDevice { ...@@ -211,8 +211,6 @@ class FlutterDevice {
ReloadMethod reloadMethod, ReloadMethod reloadMethod,
GetSkSLMethod getSkSLMethod, GetSkSLMethod getSkSLMethod,
PrintStructuredErrorLogMethod printStructuredErrorLogMethod, PrintStructuredErrorLogMethod printStructuredErrorLogMethod,
bool disableDds = false,
bool ipv6 = false,
}) { }) {
final Completer<void> completer = Completer<void>(); final Completer<void> completer = Completer<void>();
StreamSubscription<void> subscription; StreamSubscription<void> subscription;
...@@ -223,12 +221,7 @@ class FlutterDevice { ...@@ -223,12 +221,7 @@ class FlutterDevice {
globals.printTrace('Connecting to service protocol: $observatoryUri'); globals.printTrace('Connecting to service protocol: $observatoryUri');
isWaitingForVm = true; isWaitingForVm = true;
vm_service.VmService service; vm_service.VmService service;
if (!disableDds) {
await device.dds.startDartDevelopmentService(
observatoryUri,
ipv6,
);
}
try { try {
service = await connectToVmService( service = await connectToVmService(
observatoryUri, observatoryUri,
...@@ -959,7 +952,6 @@ abstract class ResidentRunner { ...@@ -959,7 +952,6 @@ abstract class ResidentRunner {
Future<void> exit() async { Future<void> exit() async {
_exited = true; _exited = true;
await shutdownDevtools(); await shutdownDevtools();
await shutdownDartDevelopmentService();
await stopEchoingDeviceLog(); await stopEchoingDeviceLog();
await preExit(); await preExit();
await exitApp(); await exitApp();
...@@ -967,7 +959,6 @@ abstract class ResidentRunner { ...@@ -967,7 +959,6 @@ abstract class ResidentRunner {
Future<void> detach() async { Future<void> detach() async {
await shutdownDevtools(); await shutdownDevtools();
await shutdownDartDevelopmentService();
await stopEchoingDeviceLog(); await stopEchoingDeviceLog();
await preExit(); await preExit();
appFinished(); appFinished();
...@@ -1136,14 +1127,6 @@ abstract class ResidentRunner { ...@@ -1136,14 +1127,6 @@ abstract class ResidentRunner {
); );
} }
Future<void> shutdownDartDevelopmentService() async {
await Future.wait<void>(
flutterDevices.map<Future<void>>(
(FlutterDevice device) => device.device?.dds?.shutdown()
).where((Future<void> element) => element != null)
);
}
@protected @protected
void cacheInitialDillCompilation() { void cacheInitialDillCompilation() {
if (_dillOutputPath != null) { if (_dillOutputPath != null) {
...@@ -1197,11 +1180,9 @@ abstract class ResidentRunner { ...@@ -1197,11 +1180,9 @@ abstract class ResidentRunner {
reloadSources: reloadSources, reloadSources: reloadSources,
restart: restart, restart: restart,
compileExpression: compileExpression, compileExpression: compileExpression,
disableDds: debuggingOptions.disableDds,
reloadMethod: reloadMethod, reloadMethod: reloadMethod,
getSkSLMethod: getSkSLMethod, getSkSLMethod: getSkSLMethod,
printStructuredErrorLogMethod: printStructuredErrorLog, printStructuredErrorLogMethod: printStructuredErrorLog,
ipv6: ipv6,
); );
// This will wait for at least one flutter view before returning. // This will wait for at least one flutter view before returning.
final Status status = globals.logger.startProgress( final Status status = globals.logger.startProgress(
......
...@@ -298,19 +298,6 @@ abstract class FlutterCommand extends Command<void> { ...@@ -298,19 +298,6 @@ abstract class FlutterCommand extends Command<void> {
_usesPortOption = true; _usesPortOption = true;
} }
void addDdsOptions({@required bool verboseHelp}) {
argParser.addFlag(
'disable-dds',
hide: !verboseHelp,
help: 'Disable the Dart Developer Service (DDS). This flag should only be provided'
' when attaching to an application with an existing DDS instance (e.g.,'
' attaching to an application currently connected to by "flutter run") or'
' when running certain tests.\n'
'Note: passing this flag may degrade IDE functionality if a DDS instance is not'
' already connected to the target application.'
);
}
/// Gets the vmservice port provided to in the 'observatory-port' or /// Gets the vmservice port provided to in the 'observatory-port' or
/// 'host-vmservice-port option. /// 'host-vmservice-port option.
/// ///
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import 'dart:async'; import 'dart:async';
import 'package:dds/dds.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import 'package:package_config/package_config.dart'; import 'package:package_config/package_config.dart';
import 'package:stream_channel/stream_channel.dart'; import 'package:stream_channel/stream_channel.dart';
...@@ -515,7 +514,7 @@ class FlutterPlatform extends PlatformPlugin { ...@@ -515,7 +514,7 @@ class FlutterPlatform extends PlatformPlugin {
Uri processObservatoryUri; Uri processObservatoryUri;
_pipeStandardStreamsToConsole( _pipeStandardStreamsToConsole(
process, process,
reportObservatoryUri: (Uri detectedUri) async { reportObservatoryUri: (Uri detectedUri) {
assert(processObservatoryUri == null); assert(processObservatoryUri == null);
assert(explicitObservatoryPort == null || assert(explicitObservatoryPort == null ||
explicitObservatoryPort == detectedUri.port); explicitObservatoryPort == detectedUri.port);
...@@ -528,14 +527,13 @@ class FlutterPlatform extends PlatformPlugin { ...@@ -528,14 +527,13 @@ class FlutterPlatform extends PlatformPlugin {
globals.printTrace('test $ourTestCount: using observatory uri $detectedUri from pid ${process.pid}'); globals.printTrace('test $ourTestCount: using observatory uri $detectedUri from pid ${process.pid}');
} }
processObservatoryUri = detectedUri; processObservatoryUri = detectedUri;
await DartDevelopmentService.startDartDevelopmentService(processObservatoryUri);
{ {
globals.printTrace('Connecting to service protocol: $processObservatoryUri'); globals.printTrace('Connecting to service protocol: $processObservatoryUri');
final Future<vm_service.VmService> localVmService = connectToVmService(processObservatoryUri, final Future<vm_service.VmService> localVmService = connectToVmService(processObservatoryUri,
compileExpression: _compileExpressionService); compileExpression: _compileExpressionService);
unawaited(localVmService.then((vm_service.VmService vmservice) { localVmService.then((vm_service.VmService vmservice) {
globals.printTrace('Successfully connected to service protocol: $processObservatoryUri'); globals.printTrace('Successfully connected to service protocol: $processObservatoryUri');
})); });
} }
gotProcessObservatoryUri.complete(); gotProcessObservatoryUri.complete();
watcher?.handleStartedProcess( watcher?.handleStartedProcess(
...@@ -872,9 +870,8 @@ class FlutterPlatform extends PlatformPlugin { ...@@ -872,9 +870,8 @@ class FlutterPlatform extends PlatformPlugin {
void _pipeStandardStreamsToConsole( void _pipeStandardStreamsToConsole(
Process process, { Process process, {
void startTimeoutTimer(), void startTimeoutTimer(),
Future<void> reportObservatoryUri(Uri uri), void reportObservatoryUri(Uri uri),
}) { }) {
const String observatoryString = 'Observatory listening on '; const String observatoryString = 'Observatory listening on ';
for (final Stream<List<int>> stream in <Stream<List<int>>>[ for (final Stream<List<int>> stream in <Stream<List<int>>>[
process.stderr, process.stderr,
...@@ -884,7 +881,7 @@ class FlutterPlatform extends PlatformPlugin { ...@@ -884,7 +881,7 @@ class FlutterPlatform extends PlatformPlugin {
.transform<String>(utf8.decoder) .transform<String>(utf8.decoder)
.transform<String>(const LineSplitter()) .transform<String>(const LineSplitter())
.listen( .listen(
(String line) async { (String line) {
if (line == _kStartTimeoutTimerMessage) { if (line == _kStartTimeoutTimerMessage) {
if (startTimeoutTimer != null) { if (startTimeoutTimer != null) {
startTimeoutTimer(); startTimeoutTimer();
...@@ -897,7 +894,7 @@ class FlutterPlatform extends PlatformPlugin { ...@@ -897,7 +894,7 @@ class FlutterPlatform extends PlatformPlugin {
try { try {
final Uri uri = Uri.parse(line.substring(observatoryString.length)); final Uri uri = Uri.parse(line.substring(observatoryString.length));
if (reportObservatoryUri != null) { if (reportObservatoryUri != null) {
await reportObservatoryUri(uri); reportObservatoryUri(uri);
} }
} on Exception catch (error) { } on Exception catch (error) {
globals.printError('Could not parse shell observatory port message: $error'); globals.printError('Could not parse shell observatory port message: $error');
......
...@@ -22,6 +22,12 @@ class Tracing { ...@@ -22,6 +22,12 @@ class Tracing {
Tracing(this.vmService); Tracing(this.vmService);
static const String firstUsefulFrameEventName = kFirstFrameRasterizedEventName; static const String firstUsefulFrameEventName = kFirstFrameRasterizedEventName;
static Future<Tracing> connect(Uri uri) async {
final vm_service.VmService observatory = await connectToVmService(uri);
return Tracing(observatory);
}
final vm_service.VmService vmService; final vm_service.VmService vmService;
Future<void> startTracing() async { Future<void> startTracing() async {
......
...@@ -11,11 +11,10 @@ dependencies: ...@@ -11,11 +11,10 @@ dependencies:
# To update these, use "flutter update-packages --force-upgrade". # To update these, use "flutter update-packages --force-upgrade".
archive: 2.0.13 archive: 2.0.13
args: 1.6.0 args: 1.6.0
dwds: 5.1.0
completion: 0.2.2 completion: 0.2.2
coverage: 0.14.0 coverage: 0.14.0
crypto: 2.1.5 crypto: 2.1.5
dds: 1.2.3
dwds: 5.1.0
file: 5.2.1 file: 5.2.1
flutter_template_images: 1.0.1 flutter_template_images: 1.0.1
http: 0.12.1 http: 0.12.1
...@@ -64,7 +63,6 @@ dependencies: ...@@ -64,7 +63,6 @@ dependencies:
http_parser: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" http_parser: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
io: 0.3.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" io: 0.3.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
js: 0.6.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" js: 0.6.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
json_rpc_2: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
logging: 0.11.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" logging: 0.11.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher: 0.12.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" matcher: 0.12.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime: 0.9.6+3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" mime: 0.9.6+3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...@@ -109,4 +107,4 @@ dartdoc: ...@@ -109,4 +107,4 @@ dartdoc:
# Exclude this package from the hosted API docs. # Exclude this package from the hosted API docs.
nodoc: true nodoc: true
# PUBSPEC CHECKSUM: 998e # PUBSPEC CHECKSUM: 85c5
...@@ -7,7 +7,6 @@ import 'dart:io'; ...@@ -7,7 +7,6 @@ import 'dart:io';
import 'package:file/memory.dart'; import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/common.dart'; import 'package:flutter_tools/src/base/common.dart';
import 'package:flutter_tools/src/base/dds.dart';
import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/logger.dart';
...@@ -72,7 +71,6 @@ void main() { ...@@ -72,7 +71,6 @@ void main() {
FakeDeviceLogReader mockLogReader; FakeDeviceLogReader mockLogReader;
MockPortForwarder portForwarder; MockPortForwarder portForwarder;
MockDartDevelopmentService mockDds;
MockAndroidDevice device; MockAndroidDevice device;
MockHttpClient httpClient; MockHttpClient httpClient;
...@@ -80,7 +78,6 @@ void main() { ...@@ -80,7 +78,6 @@ void main() {
mockLogReader = FakeDeviceLogReader(); mockLogReader = FakeDeviceLogReader();
portForwarder = MockPortForwarder(); portForwarder = MockPortForwarder();
device = MockAndroidDevice(); device = MockAndroidDevice();
mockDds = MockDartDevelopmentService();
when(device.portForwarder) when(device.portForwarder)
.thenReturn(portForwarder); .thenReturn(portForwarder);
when(portForwarder.forward(devicePort, hostPort: anyNamed('hostPort'))) when(portForwarder.forward(devicePort, hostPort: anyNamed('hostPort')))
...@@ -89,8 +86,6 @@ void main() { ...@@ -89,8 +86,6 @@ void main() {
.thenReturn(<ForwardedPort>[ForwardedPort(hostPort, devicePort)]); .thenReturn(<ForwardedPort>[ForwardedPort(hostPort, devicePort)]);
when(portForwarder.unforward(any)) when(portForwarder.unforward(any))
.thenAnswer((_) async => null); .thenAnswer((_) async => null);
when(device.dds).thenReturn(mockDds);
when(mockDds.startDartDevelopmentService(any, false)).thenReturn(null);
final HttpClientRequest httpClientRequest = MockHttpClientRequest(); final HttpClientRequest httpClientRequest = MockHttpClientRequest();
httpClient = MockHttpClient(); httpClient = MockHttpClient();
...@@ -291,14 +286,11 @@ void main() { ...@@ -291,14 +286,11 @@ void main() {
const int hostPort = 42; const int hostPort = 42;
final FakeDeviceLogReader mockLogReader = FakeDeviceLogReader(); final FakeDeviceLogReader mockLogReader = FakeDeviceLogReader();
final MockPortForwarder portForwarder = MockPortForwarder(); final MockPortForwarder portForwarder = MockPortForwarder();
final MockDartDevelopmentService mockDds = MockDartDevelopmentService();
final MockAndroidDevice device = MockAndroidDevice(); final MockAndroidDevice device = MockAndroidDevice();
final MockHotRunner mockHotRunner = MockHotRunner(); final MockHotRunner mockHotRunner = MockHotRunner();
final MockHotRunnerFactory mockHotRunnerFactory = MockHotRunnerFactory(); final MockHotRunnerFactory mockHotRunnerFactory = MockHotRunnerFactory();
when(device.portForwarder) when(device.portForwarder)
.thenReturn(portForwarder); .thenReturn(portForwarder);
when(device.dds)
.thenReturn(mockDds);
when(portForwarder.forward(devicePort, hostPort: anyNamed('hostPort'))) when(portForwarder.forward(devicePort, hostPort: anyNamed('hostPort')))
.thenAnswer((_) async => hostPort); .thenAnswer((_) async => hostPort);
when(portForwarder.forwardedPorts) when(portForwarder.forwardedPorts)
...@@ -317,7 +309,6 @@ void main() { ...@@ -317,7 +309,6 @@ void main() {
)).thenReturn(mockHotRunner); )).thenReturn(mockHotRunner);
when(mockHotRunner.exited).thenReturn(false); when(mockHotRunner.exited).thenReturn(false);
when(mockHotRunner.isWaitingForObservatory).thenReturn(false); when(mockHotRunner.isWaitingForObservatory).thenReturn(false);
when(mockDds.startDartDevelopmentService(any, false)).thenReturn(null);
testDeviceManager.addDevice(device); testDeviceManager.addDevice(device);
when(device.getLogReader(includePastLogs: anyNamed('includePastLogs'))) when(device.getLogReader(includePastLogs: anyNamed('includePastLogs')))
...@@ -368,14 +359,10 @@ void main() { ...@@ -368,14 +359,10 @@ void main() {
const int hostPort = 42; const int hostPort = 42;
final FakeDeviceLogReader mockLogReader = FakeDeviceLogReader(); final FakeDeviceLogReader mockLogReader = FakeDeviceLogReader();
final MockPortForwarder portForwarder = MockPortForwarder(); final MockPortForwarder portForwarder = MockPortForwarder();
final MockDartDevelopmentService mockDds = MockDartDevelopmentService();
final MockIOSDevice device = MockIOSDevice(); final MockIOSDevice device = MockIOSDevice();
final MockHotRunner mockHotRunner = MockHotRunner(); final MockHotRunner mockHotRunner = MockHotRunner();
final MockHotRunnerFactory mockHotRunnerFactory = MockHotRunnerFactory(); final MockHotRunnerFactory mockHotRunnerFactory = MockHotRunnerFactory();
when(device.portForwarder) when(device.portForwarder).thenReturn(portForwarder);
.thenReturn(portForwarder);
when(device.dds)
.thenReturn(mockDds);
when(device.getLogReader(includePastLogs: anyNamed('includePastLogs'))) when(device.getLogReader(includePastLogs: anyNamed('includePastLogs')))
.thenAnswer((_) => mockLogReader); .thenAnswer((_) => mockLogReader);
when(portForwarder.forward(devicePort, hostPort: anyNamed('hostPort'))) when(portForwarder.forward(devicePort, hostPort: anyNamed('hostPort')))
...@@ -396,7 +383,6 @@ void main() { ...@@ -396,7 +383,6 @@ void main() {
)).thenReturn(mockHotRunner); )).thenReturn(mockHotRunner);
when(mockHotRunner.exited).thenReturn(false); when(mockHotRunner.exited).thenReturn(false);
when(mockHotRunner.isWaitingForObservatory).thenReturn(false); when(mockHotRunner.isWaitingForObservatory).thenReturn(false);
when(mockDds.startDartDevelopmentService(any, false)).thenReturn(null);
testDeviceManager.addDevice(device); testDeviceManager.addDevice(device);
...@@ -429,7 +415,6 @@ void main() { ...@@ -429,7 +415,6 @@ void main() {
setUp(() { setUp(() {
portForwarder = MockPortForwarder(); portForwarder = MockPortForwarder();
final MockDartDevelopmentService mockDds = MockDartDevelopmentService();
device = MockAndroidDevice(); device = MockAndroidDevice();
when(device.portForwarder) when(device.portForwarder)
...@@ -440,10 +425,6 @@ void main() { ...@@ -440,10 +425,6 @@ void main() {
.thenReturn(<ForwardedPort>[ForwardedPort(hostPort, devicePort)]); .thenReturn(<ForwardedPort>[ForwardedPort(hostPort, devicePort)]);
when(portForwarder.unforward(any)) when(portForwarder.unforward(any))
.thenAnswer((_) async => null); .thenAnswer((_) async => null);
when(device.dds)
.thenReturn(mockDds);
when(mockDds.startDartDevelopmentService(any, any))
.thenReturn(null);
}); });
testUsingContext('succeeds in ipv4 mode', () async { testUsingContext('succeeds in ipv4 mode', () async {
...@@ -814,7 +795,6 @@ class TestHotRunnerFactory extends HotRunnerFactory { ...@@ -814,7 +795,6 @@ class TestHotRunnerFactory extends HotRunnerFactory {
} }
} }
class MockDartDevelopmentService extends Mock implements DartDevelopmentService {}
class MockProcessManager extends Mock implements ProcessManager {} class MockProcessManager extends Mock implements ProcessManager {}
class MockProcess extends Mock implements Process {} class MockProcess extends Mock implements Process {}
class MockHttpClientRequest extends Mock implements HttpClientRequest {} class MockHttpClientRequest extends Mock implements HttpClientRequest {}
......
...@@ -8,7 +8,6 @@ import 'package:file/memory.dart'; ...@@ -8,7 +8,6 @@ import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart'; import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/android/android_device.dart'; import 'package:flutter_tools/src/android/android_device.dart';
import 'package:flutter_tools/src/base/common.dart'; import 'package:flutter_tools/src/base/common.dart';
import 'package:flutter_tools/src/base/dds.dart';
import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/platform.dart';
...@@ -68,12 +67,6 @@ void main() { ...@@ -68,12 +67,6 @@ void main() {
tryToDelete(tempDir); tryToDelete(tempDir);
}); });
void applyDdsMocks(Device device) {
final MockDartDevelopmentService mockDds = MockDartDevelopmentService();
when(device.dds).thenReturn(mockDds);
when(mockDds.startDartDevelopmentService(any, any)).thenReturn(null);
}
testUsingContext('returns 1 when test file is not found', () async { testUsingContext('returns 1 when test file is not found', () async {
testDeviceManager.addDevice(MockDevice()); testDeviceManager.addDevice(MockDevice());
...@@ -195,9 +188,7 @@ void main() { ...@@ -195,9 +188,7 @@ void main() {
}); });
testUsingContext('returns 0 when test ends successfully', () async { testUsingContext('returns 0 when test ends successfully', () async {
final MockAndroidDevice mockDevice = MockAndroidDevice(); testDeviceManager.addDevice(MockAndroidDevice());
applyDdsMocks(mockDevice);
testDeviceManager.addDevice(mockDevice);
final String testApp = globals.fs.path.join(tempDir.path, 'test', 'e2e.dart'); final String testApp = globals.fs.path.join(tempDir.path, 'test', 'e2e.dart');
final String testFile = globals.fs.path.join(tempDir.path, 'test_driver', 'e2e_test.dart'); final String testFile = globals.fs.path.join(tempDir.path, 'test_driver', 'e2e_test.dart');
...@@ -236,9 +227,7 @@ void main() { ...@@ -236,9 +227,7 @@ void main() {
}); });
testUsingContext('returns exitCode set by test runner', () async { testUsingContext('returns exitCode set by test runner', () async {
final MockDevice mockDevice = MockDevice(); testDeviceManager.addDevice(MockDevice());
applyDdsMocks(mockDevice);
testDeviceManager.addDevice(mockDevice);
final String testApp = globals.fs.path.join(tempDir.path, 'test', 'e2e.dart'); final String testApp = globals.fs.path.join(tempDir.path, 'test', 'e2e.dart');
final String testFile = globals.fs.path.join(tempDir.path, 'test_driver', 'e2e_test.dart'); final String testFile = globals.fs.path.join(tempDir.path, 'test_driver', 'e2e_test.dart');
...@@ -385,7 +374,6 @@ void main() { ...@@ -385,7 +374,6 @@ void main() {
Future<Device> appStarterSetup() async { Future<Device> appStarterSetup() async {
final Device mockDevice = MockDevice(); final Device mockDevice = MockDevice();
applyDdsMocks(mockDevice);
testDeviceManager.addDevice(mockDevice); testDeviceManager.addDevice(mockDevice);
final FakeDeviceLogReader mockDeviceLogReader = FakeDeviceLogReader(); final FakeDeviceLogReader mockDeviceLogReader = FakeDeviceLogReader();
...@@ -521,7 +509,6 @@ void main() { ...@@ -521,7 +509,6 @@ void main() {
Future<Device> appStarterSetup() async { Future<Device> appStarterSetup() async {
final Device mockDevice = MockDevice(); final Device mockDevice = MockDevice();
applyDdsMocks(mockDevice);
testDeviceManager.addDevice(mockDevice); testDeviceManager.addDevice(mockDevice);
final FakeDeviceLogReader mockDeviceLogReader = FakeDeviceLogReader(); final FakeDeviceLogReader mockDeviceLogReader = FakeDeviceLogReader();
...@@ -805,5 +792,5 @@ class MockDevice extends Mock implements Device { ...@@ -805,5 +792,5 @@ class MockDevice extends Mock implements Device {
} }
class MockAndroidDevice extends Mock implements AndroidDevice { } class MockAndroidDevice extends Mock implements AndroidDevice { }
class MockDartDevelopmentService extends Mock implements DartDevelopmentService { }
class MockLaunchResult extends Mock implements LaunchResult { } class MockLaunchResult extends Mock implements LaunchResult { }
...@@ -139,8 +139,6 @@ class TestFlutterDevice extends FlutterDevice { ...@@ -139,8 +139,6 @@ class TestFlutterDevice extends FlutterDevice {
ReloadMethod reloadMethod, ReloadMethod reloadMethod,
GetSkSLMethod getSkSLMethod, GetSkSLMethod getSkSLMethod,
PrintStructuredErrorLogMethod printStructuredErrorLogMethod, PrintStructuredErrorLogMethod printStructuredErrorLogMethod,
bool disableDds = false,
bool ipv6 = false,
}) async { }) async {
throw exception; throw exception;
} }
......
...@@ -728,7 +728,6 @@ void main() { ...@@ -728,7 +728,6 @@ void main() {
fuchsiaDevice, fuchsiaDevice,
expectedIsolateName, expectedIsolateName,
(Uri uri) async => fakeVmServiceHost.vmService, (Uri uri) async => fakeVmServiceHost.vmService,
(Device device, Uri uri) => null,
true, // only poll once. true, // only poll once.
); );
......
...@@ -578,8 +578,6 @@ class TestFlutterDevice extends FlutterDevice { ...@@ -578,8 +578,6 @@ class TestFlutterDevice extends FlutterDevice {
ReloadMethod reloadMethod, ReloadMethod reloadMethod,
GetSkSLMethod getSkSLMethod, GetSkSLMethod getSkSLMethod,
PrintStructuredErrorLogMethod printStructuredErrorLogMethod, PrintStructuredErrorLogMethod printStructuredErrorLogMethod,
bool disableDds = false,
bool ipv6 = false,
}) async { }) async {
throw exception; throw exception;
} }
......
...@@ -61,7 +61,7 @@ void main() { ...@@ -61,7 +61,7 @@ void main() {
expect(await fallbackDiscovery.discover( expect(await fallbackDiscovery.discover(
assumedDevicePort: 23, assumedDevicePort: 23,
device: null, deivce: null,
hostVmservicePort: 1, hostVmservicePort: 1,
packageId: null, packageId: null,
usesIpv6: false, usesIpv6: false,
...@@ -86,7 +86,7 @@ void main() { ...@@ -86,7 +86,7 @@ void main() {
}); });
expect(await fallbackDiscovery.discover( expect(await fallbackDiscovery.discover(
assumedDevicePort: 23, assumedDevicePort: 23,
device: null, deivce: null,
hostVmservicePort: 1, hostVmservicePort: 1,
packageId: null, packageId: null,
usesIpv6: false, usesIpv6: false,
...@@ -117,7 +117,7 @@ void main() { ...@@ -117,7 +117,7 @@ void main() {
expect(await fallbackDiscovery.discover( expect(await fallbackDiscovery.discover(
assumedDevicePort: 23, assumedDevicePort: 23,
device: null, deivce: null,
hostVmservicePort: 1, hostVmservicePort: 1,
packageId: 'hello', packageId: 'hello',
usesIpv6: false, usesIpv6: false,
...@@ -139,7 +139,7 @@ void main() { ...@@ -139,7 +139,7 @@ void main() {
expect(await fallbackDiscovery.discover( expect(await fallbackDiscovery.discover(
assumedDevicePort: 23, assumedDevicePort: 23,
device: null, deivce: null,
hostVmservicePort: 1, hostVmservicePort: 1,
packageId: 'hello', packageId: 'hello',
usesIpv6: false, usesIpv6: false,
...@@ -161,7 +161,7 @@ void main() { ...@@ -161,7 +161,7 @@ void main() {
expect(await fallbackDiscovery.discover( expect(await fallbackDiscovery.discover(
assumedDevicePort: 23, assumedDevicePort: 23,
device: null, deivce: null,
hostVmservicePort: 1, hostVmservicePort: 1,
packageId: 'hello', packageId: 'hello',
usesIpv6: false, usesIpv6: false,
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import 'dart:async'; import 'dart:async';
import 'package:flutter_tools/src/base/dds.dart';
import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/cache.dart';
import 'package:vm_service/vm_service.dart' as vm_service; import 'package:vm_service/vm_service.dart' as vm_service;
import 'package:file/memory.dart'; import 'package:file/memory.dart';
...@@ -1677,11 +1676,8 @@ void main() { ...@@ -1677,11 +1676,8 @@ void main() {
testUsingContext('connect sets up log reader', () => testbed.run(() async { testUsingContext('connect sets up log reader', () => testbed.run(() async {
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
final MockDevice mockDevice = MockDevice(); final MockDevice mockDevice = MockDevice();
final MockDartDevelopmentService mockDds = MockDartDevelopmentService();
final MockDeviceLogReader mockLogReader = MockDeviceLogReader(); final MockDeviceLogReader mockLogReader = MockDeviceLogReader();
when(mockDevice.getLogReader(app: anyNamed('app'))).thenReturn(mockLogReader); when(mockDevice.getLogReader(app: anyNamed('app'))).thenReturn(mockLogReader);
when(mockDevice.dds).thenReturn(mockDds);
when(mockDds.startDartDevelopmentService(any, any)).thenReturn(null);
final TestFlutterDevice flutterDevice = TestFlutterDevice( final TestFlutterDevice flutterDevice = TestFlutterDevice(
mockDevice, mockDevice,
...@@ -1713,7 +1709,6 @@ void main() { ...@@ -1713,7 +1709,6 @@ void main() {
} }
class MockFlutterDevice extends Mock implements FlutterDevice {} class MockFlutterDevice extends Mock implements FlutterDevice {}
class MockDartDevelopmentService extends Mock implements DartDevelopmentService {}
class MockVMService extends Mock implements vm_service.VmService {} class MockVMService extends Mock implements vm_service.VmService {}
class MockDevFS extends Mock implements DevFS {} class MockDevFS extends Mock implements DevFS {}
class MockDevice extends Mock implements Device {} class MockDevice extends Mock implements Device {}
......
...@@ -21,14 +21,7 @@ void main() { ...@@ -21,14 +21,7 @@ void main() {
tempDir = createResolvedTempDirectorySync('attach_test.'); tempDir = createResolvedTempDirectorySync('attach_test.');
await _project.setUpIn(tempDir); await _project.setUpIn(tempDir);
_flutterRun = FlutterRunTestDriver(tempDir, logPrefix: ' RUN '); _flutterRun = FlutterRunTestDriver(tempDir, logPrefix: ' RUN ');
_flutterAttach = FlutterRunTestDriver( _flutterAttach = FlutterRunTestDriver(tempDir, logPrefix: 'ATTACH ');
tempDir,
logPrefix: 'ATTACH ',
// Only one DDS instance can be connected to the VM service at a time.
// DDS can also only initialize if the VM service doesn't have any existing
// clients, so we'll just let _flutterRun be responsible for spawning DDS.
spawnDdsInstance: false,
);
}); });
tearDown(() async { tearDown(() async {
...@@ -65,11 +58,7 @@ void main() { ...@@ -65,11 +58,7 @@ void main() {
await _flutterRun.run(withDebugger: true); await _flutterRun.run(withDebugger: true);
await _flutterAttach.attach(_flutterRun.vmServicePort); await _flutterAttach.attach(_flutterRun.vmServicePort);
await _flutterAttach.quit(); await _flutterAttach.quit();
_flutterAttach = FlutterRunTestDriver( _flutterAttach = FlutterRunTestDriver(tempDir, logPrefix: 'ATTACH-2');
tempDir,
logPrefix: 'ATTACH-2',
spawnDdsInstance: false,
);
await _flutterAttach.attach(_flutterRun.vmServicePort); await _flutterAttach.attach(_flutterRun.vmServicePort);
await _flutterAttach.hotReload(); await _flutterAttach.hotReload();
}); });
......
...@@ -25,6 +25,7 @@ void main() { ...@@ -25,6 +25,7 @@ void main() {
}); });
tearDown(() async { tearDown(() async {
await _flutter.stop();
tryToDelete(tempDir); tryToDelete(tempDir);
}); });
...@@ -50,6 +51,7 @@ void main() { ...@@ -50,6 +51,7 @@ void main() {
// Complete anyway in case we don't see the 'Another exception' line. // Complete anyway in case we don't see the 'Another exception' line.
completer.complete(); completer.complete();
}); });
await _flutter.stop(); await _flutter.stop();
expect(stdout.toString(), contains(_exceptionStart)); expect(stdout.toString(), contains(_exceptionStart));
...@@ -60,6 +62,7 @@ void main() { ...@@ -60,6 +62,7 @@ void main() {
await _flutter.run(startPaused: true, withDebugger: true, structuredErrors: true, chrome: true); await _flutter.run(startPaused: true, withDebugger: true, structuredErrors: true, chrome: true);
await _flutter.resume(); await _flutter.resume();
final Completer<void> completer = Completer<void>(); final Completer<void> completer = Completer<void>();
bool lineFound = false; bool lineFound = false;
......
...@@ -428,7 +428,6 @@ class FlutterRunTestDriver extends FlutterTestDriver { ...@@ -428,7 +428,6 @@ class FlutterRunTestDriver extends FlutterTestDriver {
FlutterRunTestDriver( FlutterRunTestDriver(
Directory projectFolder, { Directory projectFolder, {
String logPrefix, String logPrefix,
this.spawnDdsInstance = true,
}) : super(projectFolder, logPrefix: logPrefix); }) : super(projectFolder, logPrefix: logPrefix);
String _currentRunningAppId; String _currentRunningAppId;
...@@ -448,8 +447,6 @@ class FlutterRunTestDriver extends FlutterTestDriver { ...@@ -448,8 +447,6 @@ class FlutterRunTestDriver extends FlutterTestDriver {
'run', 'run',
if (!chrome) if (!chrome)
'--disable-service-auth-codes', '--disable-service-auth-codes',
if (!spawnDdsInstance)
'--disable-dds',
'--machine', '--machine',
'-d', '-d',
if (chrome) if (chrome)
...@@ -482,8 +479,6 @@ class FlutterRunTestDriver extends FlutterTestDriver { ...@@ -482,8 +479,6 @@ class FlutterRunTestDriver extends FlutterTestDriver {
<String>[ <String>[
'attach', 'attach',
'--machine', '--machine',
if (!spawnDdsInstance)
'--disable-dds',
'-d', '-d',
'flutter-tester', 'flutter-tester',
'--debug-port', '--debug-port',
...@@ -685,8 +680,6 @@ class FlutterRunTestDriver extends FlutterTestDriver { ...@@ -685,8 +680,6 @@ class FlutterRunTestDriver extends FlutterTestDriver {
void _throwErrorResponse(String message) { void _throwErrorResponse(String message) {
throw '$message\n\n$_lastResponse\n\n${_errorBuffer.toString()}'.trim(); throw '$message\n\n$_lastResponse\n\n${_errorBuffer.toString()}'.trim();
} }
final bool spawnDdsInstance;
} }
class FlutterTestTestDriver extends FlutterTestDriver { class FlutterTestTestDriver extends FlutterTestDriver {
......
...@@ -39,15 +39,6 @@ void main() { ...@@ -39,15 +39,6 @@ void main() {
tryToDelete(tempDir); tryToDelete(tempDir);
}); });
test('getSupportedProtocols includes DDS', () async {
final ProtocolList protocolList =
await vmService.getSupportedProtocols();
expect(protocolList.protocols, hasLength(2));
for (final Protocol protocol in protocolList.protocols) {
expect(protocol.protocolName, anyOf('VM Service', 'DDS'));
}
});
test('flutterVersion can be called', () async { test('flutterVersion can be called', () async {
final Response response = final Response response =
await vmService.callServiceExtension('s0.flutterVersion'); await vmService.callServiceExtension('s0.flutterVersion');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment