Unverified Commit 71b47975 authored by gaaclarke's avatar gaaclarke Committed by GitHub

turned on background isolate platform channel tests for android (#111279)

parent b63d4875
...@@ -29,6 +29,15 @@ public class MainActivity extends FlutterActivity { ...@@ -29,6 +29,15 @@ public class MainActivity extends FlutterActivity {
setupMessageHandshake(new BasicMessageChannel<>(dartExecutor, "std-msg", ExtendedStandardMessageCodec.INSTANCE)); setupMessageHandshake(new BasicMessageChannel<>(dartExecutor, "std-msg", ExtendedStandardMessageCodec.INSTANCE));
setupMethodHandshake(new MethodChannel(dartExecutor, "json-method", JSONMethodCodec.INSTANCE)); setupMethodHandshake(new MethodChannel(dartExecutor, "json-method", JSONMethodCodec.INSTANCE));
setupMethodHandshake(new MethodChannel(dartExecutor, "std-method", new StandardMethodCodec(ExtendedStandardMessageCodec.INSTANCE))); setupMethodHandshake(new MethodChannel(dartExecutor, "std-method", new StandardMethodCodec(ExtendedStandardMessageCodec.INSTANCE)));
BasicMessageChannel echoChannel =
new BasicMessageChannel(dartExecutor, "std-echo", ExtendedStandardMessageCodec.INSTANCE);
echoChannel.setMessageHandler(new BasicMessageChannel.MessageHandler(){
@Override
public void onMessage(final Object message, final BasicMessageChannel.Reply reply) {
reply.reply(message);
}
});
} }
private <T> void setupMessageHandshake(final BasicMessageChannel<T> channel) { private <T> void setupMessageHandshake(final BasicMessageChannel<T> channel) {
......
...@@ -173,7 +173,7 @@ class _TestAppState extends State<TestApp> { ...@@ -173,7 +173,7 @@ class _TestAppState extends State<TestApp> {
() => basicStringMessageToUnknownChannel(), () => basicStringMessageToUnknownChannel(),
() => basicJsonMessageToUnknownChannel(), () => basicJsonMessageToUnknownChannel(),
() => basicStandardMessageToUnknownChannel(), () => basicStandardMessageToUnknownChannel(),
if (Platform.isIOS) if (Platform.isIOS || Platform.isAndroid)
() => basicBackgroundStandardEcho(123), () => basicBackgroundStandardEcho(123),
]; ];
Future<TestStepResult>? _result; Future<TestStepResult>? _result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment