diff --git a/packages/flutter_tools/lib/src/test/runner.dart b/packages/flutter_tools/lib/src/test/runner.dart index 908c432dab..6254b884e8 100644 --- a/packages/flutter_tools/lib/src/test/runner.dart +++ b/packages/flutter_tools/lib/src/test/runner.dart @@ -394,6 +394,7 @@ void createChannelAndConnect(String path, String name, Function testMain) { channel.pipe(RemoteListener.start(() => testMain)); } +@pragma('vm:entry-point') void testMain() { final String route = PlatformDispatcher.instance.defaultRouteName; switch (route) { @@ -418,6 +419,7 @@ void testMain() { } } +@pragma('vm:entry-point') void main([dynamic sendPort]) { if (sendPort is SendPort) { final ReceivePort receivePort = ReceivePort(); @@ -495,6 +497,7 @@ Future spawn({ commandPort.send(['spawn', port, entrypoint, route]); } +@pragma('vm:entry-point') void main() async { final String route = PlatformDispatcher.instance.defaultRouteName;