mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:58:29 +00:00
7250fd6379
This reverts commit b8c5ecd5aa
.
TEST=N/A
Change-Id: I38bbebe1e38bc9dbfdde764eff847aafb3e39353
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200926
Reviewed-by: Siva Annamalai <asiva@google.com>
25 lines
809 B
Dart
25 lines
809 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:dds/dds.dart';
|
|
import 'package:vm_service/vm_service_io.dart';
|
|
|
|
import '../test/common/test_helper.dart';
|
|
|
|
Future<void> main() async {
|
|
final process = await spawnDartProcess('../test/smoke.dart');
|
|
final dds = await DartDevelopmentService.startDartDevelopmentService(
|
|
remoteVmServiceUri,
|
|
);
|
|
|
|
// Connect to the DDS instance and make a request using package:vm_service.
|
|
final service = await vmServiceConnectUri(dds.wsUri.toString());
|
|
final version = await service.getVersion();
|
|
|
|
print('Service Version: $version');
|
|
|
|
await dds.shutdown();
|
|
process.kill();
|
|
}
|