5#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_result_functions.h"
10#include "gtest/gtest.h"
15TEST(MethodChannelTest, NoHandlers) {
23TEST(MethodChannelTest, Success) {
27 [&called,
value](
const int*
i) {
37TEST(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);
58TEST(MethodChannelTest, NotImplemented) {
61 [&called]() { called =
true; });
TEST(FrameTimingsRecorderTest, RecordVsync)
#define EXPECT_TRUE(handle)