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:
stuartmorgan
2020-08-11 19:16:20 -07:00
committed by GitHub
parent 4e60afdf2a
commit 08a585be33

View File

@@ -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);