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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user