From 724d349f3ce0d065863944ea77fe9a414114c782 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Tue, 11 Aug 2020 13:56:08 -0700 Subject: [PATCH] Add missing reply in C++ MethodChannel unit test 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/shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc b/shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc index 530332458d9ea..13cbb50f88c63 100644 --- a/shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc +++ b/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);