|
|
|
|
@@ -1809,11 +1809,12 @@ void main() {
|
|
|
|
|
fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
|
|
|
|
|
final FakeDevice device = FakeDevice()
|
|
|
|
|
..dds = DartDevelopmentService();
|
|
|
|
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) {
|
|
|
|
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) {
|
|
|
|
|
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
|
|
|
|
expect(enableAuthCodes, isTrue);
|
|
|
|
|
expect(ipv6, isFalse);
|
|
|
|
|
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
|
|
|
|
|
expect(cachedUserTags, <String>['AppStartUp']);
|
|
|
|
|
throw FakeDartDevelopmentServiceException(message:
|
|
|
|
|
'Existing VM service clients prevent DDS from taking control.',
|
|
|
|
|
);
|
|
|
|
|
@@ -1856,11 +1857,12 @@ void main() {
|
|
|
|
|
final FakeDevice device = FakeDevice()
|
|
|
|
|
..dds = DartDevelopmentService();
|
|
|
|
|
final Completer<void>done = Completer<void>();
|
|
|
|
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) async {
|
|
|
|
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) async {
|
|
|
|
|
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
|
|
|
|
expect(enableAuthCodes, isFalse);
|
|
|
|
|
expect(ipv6, isTrue);
|
|
|
|
|
expect(serviceUri, Uri(scheme: 'http', host: '::1', port: 0));
|
|
|
|
|
expect(cachedUserTags, <String>['AppStartUp']);
|
|
|
|
|
done.complete();
|
|
|
|
|
return null;
|
|
|
|
|
};
|
|
|
|
|
@@ -1887,11 +1889,12 @@ void main() {
|
|
|
|
|
// See https://github.com/flutter/flutter/issues/72385 for context.
|
|
|
|
|
final FakeDevice device = FakeDevice()
|
|
|
|
|
..dds = DartDevelopmentService();
|
|
|
|
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri}) {
|
|
|
|
|
ddsLauncherCallback = (Uri uri, {bool enableAuthCodes, bool ipv6, Uri serviceUri, List<String> cachedUserTags}) {
|
|
|
|
|
expect(uri, Uri(scheme: 'foo', host: 'bar'));
|
|
|
|
|
expect(enableAuthCodes, isTrue);
|
|
|
|
|
expect(ipv6, isFalse);
|
|
|
|
|
expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0));
|
|
|
|
|
expect(cachedUserTags, <String>['AppStartUp']);
|
|
|
|
|
throw FakeDartDevelopmentServiceException(message: 'No URI');
|
|
|
|
|
};
|
|
|
|
|
final TestFlutterDevice flutterDevice = TestFlutterDevice(
|
|
|
|
|
|