From 08a585be3317452fc24c71db50b40a7e6940dd12 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Tue, 11 Aug 2020 19:16:20 -0700 Subject: [PATCH] Add missing reply in C++ MethodChannel unit test (flutter/engine#20420) The test handler wasn't replying, which logged an error message during the unit test. Fixes https://github.com/flutter/flutter/issues/62560 --- .../common/cpp/client_wrapper/method_channel_unittests.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc b/engine/src/flutter/shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc index 530332458d..13cbb50f88 100644 --- a/engine/src/flutter/shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc +++ b/engine/src/flutter/shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc @@ -67,6 +67,7 @@ TEST(MethodChannelTest, Registration) { // result. EXPECT_EQ(call.method_name(), method_name); EXPECT_NE(result, nullptr); + result->Success(); }); EXPECT_EQ(messenger.last_message_handler_channel(), channel_name); EXPECT_NE(messenger.last_message_handler(), nullptr);