diff --git a/dev/integration_tests/channels/lib/main.dart b/dev/integration_tests/channels/lib/main.dart index 7ca133fbab..7b46fa84b2 100644 --- a/dev/integration_tests/channels/lib/main.dart +++ b/dev/integration_tests/channels/lib/main.dart @@ -173,7 +173,7 @@ class _TestAppState extends State { () => basicStringMessageToUnknownChannel(), () => basicJsonMessageToUnknownChannel(), () => basicStandardMessageToUnknownChannel(), - if (Platform.isIOS || Platform.isAndroid) + if (Platform.isIOS || Platform.isAndroid || Platform.isMacOS) () => basicBackgroundStandardEcho(123), ]; Future? _result; diff --git a/dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift b/dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift index 5e54fd8a24..b72f3c3bc4 100644 --- a/dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift +++ b/dev/integration_tests/channels/macos/Runner/MainFlutterWindow.swift @@ -99,6 +99,13 @@ class MainFlutterWindow: NSWindow { binaryMessenger: registrar.messenger, codec: FlutterStandardMethodCodec(readerWriter: ExtendedReaderWriter()))) + FlutterBasicMessageChannel( + name: "std-echo", binaryMessenger: registrar.messenger, + codec: FlutterStandardMessageCodec.sharedInstance() + ).setMessageHandler { message, reply in + reply(message) + } + super.awakeFromNib() }