diff --git a/packages/flutter_tools/lib/src/base/dds.dart b/packages/flutter_tools/lib/src/base/dds.dart index 6b9524224f..6a5ece2c29 100644 --- a/packages/flutter_tools/lib/src/base/dds.dart +++ b/packages/flutter_tools/lib/src/base/dds.dart @@ -28,7 +28,7 @@ typedef DDSLauncherCallback = Future Function({ bool enableServicePortFallback, List cachedUserTags, String? dartExecutable, - Uri? google3WorkspaceRoot, + String? google3WorkspaceRoot, }); // TODO(fujino): This should be direct injected, rather than mutable global state. @@ -91,9 +91,7 @@ class DartDevelopmentService with DartDevelopmentServiceLocalOperationsMixin { ? const ['AppStartUp'] : const [], devToolsServerAddress: devToolsServerAddress, - google3WorkspaceRoot: google3WorkspaceRoot != null - ? Uri.parse(google3WorkspaceRoot) - : null, + google3WorkspaceRoot: google3WorkspaceRoot, dartExecutable: globals.artifacts!.getArtifactPath( Artifact.engineDartBinary, ), diff --git a/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart b/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart index bbb0bfd09e..e2f4eca3c9 100644 --- a/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart +++ b/packages/flutter_tools/test/general.shard/flutter_tester_device_test.dart @@ -277,7 +277,7 @@ void main() { bool enableServicePortFallback = false, List cachedUserTags = const [], String? dartExecutable, - Uri? google3WorkspaceRoot, + String? google3WorkspaceRoot, }) async { return FakeDartDevelopmentServiceLauncher(uri: Uri.parse('http://localhost:1234')); }; diff --git a/packages/flutter_tools/test/general.shard/resident_runner_test.dart b/packages/flutter_tools/test/general.shard/resident_runner_test.dart index 5518ef1a6e..864e190fbf 100644 --- a/packages/flutter_tools/test/general.shard/resident_runner_test.dart +++ b/packages/flutter_tools/test/general.shard/resident_runner_test.dart @@ -1947,7 +1947,7 @@ flutter: bool enableServicePortFallback = false, List cachedUserTags = const [], String? dartExecutable, - Uri? google3WorkspaceRoot, + String? google3WorkspaceRoot, }) { throw DartDevelopmentServiceException.existingDdsInstance( 'Existing DDS at http://localhost/existingDdsInMessage.', @@ -1996,7 +1996,7 @@ flutter: bool enableServicePortFallback = false, List cachedUserTags = const [], String? dartExecutable, - Uri? google3WorkspaceRoot, + String? google3WorkspaceRoot, }) async { expect(remoteVmServiceUri, Uri(scheme: 'foo', host: 'bar')); expect(enableAuthCodes, isFalse); @@ -2043,7 +2043,7 @@ flutter: bool enableServicePortFallback = false, List cachedUserTags = const [], String? dartExecutable, - Uri? google3WorkspaceRoot, + String? google3WorkspaceRoot, }) { expect(remoteVmServiceUri, Uri(scheme: 'foo', host: 'bar')); expect(enableAuthCodes, isTrue);