Update the signature of DDS launcher callback. (#154949)
Following https://dart-review.googlesource.com/c/sdk/+/383901
This commit is contained in:
parent
b5ce70a760
commit
00b410a466
@ -28,7 +28,7 @@ typedef DDSLauncherCallback = Future<DartDevelopmentServiceLauncher> Function({
|
|||||||
bool enableServicePortFallback,
|
bool enableServicePortFallback,
|
||||||
List<String> cachedUserTags,
|
List<String> cachedUserTags,
|
||||||
String? dartExecutable,
|
String? dartExecutable,
|
||||||
Uri? google3WorkspaceRoot,
|
String? google3WorkspaceRoot,
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO(fujino): This should be direct injected, rather than mutable global state.
|
// TODO(fujino): This should be direct injected, rather than mutable global state.
|
||||||
@ -91,9 +91,7 @@ class DartDevelopmentService with DartDevelopmentServiceLocalOperationsMixin {
|
|||||||
? const <String>['AppStartUp']
|
? const <String>['AppStartUp']
|
||||||
: const <String>[],
|
: const <String>[],
|
||||||
devToolsServerAddress: devToolsServerAddress,
|
devToolsServerAddress: devToolsServerAddress,
|
||||||
google3WorkspaceRoot: google3WorkspaceRoot != null
|
google3WorkspaceRoot: google3WorkspaceRoot,
|
||||||
? Uri.parse(google3WorkspaceRoot)
|
|
||||||
: null,
|
|
||||||
dartExecutable: globals.artifacts!.getArtifactPath(
|
dartExecutable: globals.artifacts!.getArtifactPath(
|
||||||
Artifact.engineDartBinary,
|
Artifact.engineDartBinary,
|
||||||
),
|
),
|
||||||
|
@ -277,7 +277,7 @@ void main() {
|
|||||||
bool enableServicePortFallback = false,
|
bool enableServicePortFallback = false,
|
||||||
List<String> cachedUserTags = const <String>[],
|
List<String> cachedUserTags = const <String>[],
|
||||||
String? dartExecutable,
|
String? dartExecutable,
|
||||||
Uri? google3WorkspaceRoot,
|
String? google3WorkspaceRoot,
|
||||||
}) async {
|
}) async {
|
||||||
return FakeDartDevelopmentServiceLauncher(uri: Uri.parse('http://localhost:1234'));
|
return FakeDartDevelopmentServiceLauncher(uri: Uri.parse('http://localhost:1234'));
|
||||||
};
|
};
|
||||||
|
@ -1947,7 +1947,7 @@ flutter:
|
|||||||
bool enableServicePortFallback = false,
|
bool enableServicePortFallback = false,
|
||||||
List<String> cachedUserTags = const <String>[],
|
List<String> cachedUserTags = const <String>[],
|
||||||
String? dartExecutable,
|
String? dartExecutable,
|
||||||
Uri? google3WorkspaceRoot,
|
String? google3WorkspaceRoot,
|
||||||
}) {
|
}) {
|
||||||
throw DartDevelopmentServiceException.existingDdsInstance(
|
throw DartDevelopmentServiceException.existingDdsInstance(
|
||||||
'Existing DDS at http://localhost/existingDdsInMessage.',
|
'Existing DDS at http://localhost/existingDdsInMessage.',
|
||||||
@ -1996,7 +1996,7 @@ flutter:
|
|||||||
bool enableServicePortFallback = false,
|
bool enableServicePortFallback = false,
|
||||||
List<String> cachedUserTags = const <String>[],
|
List<String> cachedUserTags = const <String>[],
|
||||||
String? dartExecutable,
|
String? dartExecutable,
|
||||||
Uri? google3WorkspaceRoot,
|
String? google3WorkspaceRoot,
|
||||||
}) async {
|
}) async {
|
||||||
expect(remoteVmServiceUri, Uri(scheme: 'foo', host: 'bar'));
|
expect(remoteVmServiceUri, Uri(scheme: 'foo', host: 'bar'));
|
||||||
expect(enableAuthCodes, isFalse);
|
expect(enableAuthCodes, isFalse);
|
||||||
@ -2043,7 +2043,7 @@ flutter:
|
|||||||
bool enableServicePortFallback = false,
|
bool enableServicePortFallback = false,
|
||||||
List<String> cachedUserTags = const <String>[],
|
List<String> cachedUserTags = const <String>[],
|
||||||
String? dartExecutable,
|
String? dartExecutable,
|
||||||
Uri? google3WorkspaceRoot,
|
String? google3WorkspaceRoot,
|
||||||
}) {
|
}) {
|
||||||
expect(remoteVmServiceUri, Uri(scheme: 'foo', host: 'bar'));
|
expect(remoteVmServiceUri, Uri(scheme: 'foo', host: 'bar'));
|
||||||
expect(enableAuthCodes, isTrue);
|
expect(enableAuthCodes, isTrue);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user