10 #include "gtest/gtest.h"
15 TEST(MethodChannelTest, NoHandlers) {
23 TEST(MethodChannelTest, Success) {
27 [&called,
value](
const int*
i) {
37 TEST(MethodChannelTest, Error) {
39 std::string error_code =
"a";
40 std::string error_message =
"b";
41 int error_details = 1;
44 [&called, error_code, error_message, error_details](
45 const std::string& code,
const std::string& message,
48 EXPECT_EQ(code, error_code);
49 EXPECT_EQ(message, error_message);
50 EXPECT_EQ(*details, error_details);
53 result.Error(error_code, error_message, error_details);
58 TEST(MethodChannelTest, NotImplemented) {
61 [&called]() { called =
true; });