Line data Source code
1 : // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 2 : // for details. All rights reserved. Use of this source code is governed by a 3 : // BSD-style license that can be found in the LICENSE file. 4 : 5 : import 'dart:isolate'; 6 : 7 : import 'package:stream_channel/isolate_channel.dart'; 8 : 9 : import 'package:test_core/src/runner/plugin/remote_platform_helpers.dart'; 10 : 11 : /// Bootstraps a vm test to communicate with the test runner. 12 11 : void internalBootstrapVmTest(Function Function() getMain, SendPort sendPort) { 13 11 : var channel = serializeSuite(getMain); 14 22 : IsolateChannel<Object?>.connectSend(sendPort).pipe(channel); 15 : }