![Logo](flutter_logo.png) |
Flutter Linux Embedder
|
|
Go to the source code of this file.
|
| TEST (FlMethodChannelTest, InvokeMethod) |
|
| TEST (FlMethodChannelTest, InvokeMethodNullptrArgsMessage) |
|
| TEST (FlMethodChannelTest, InvokeMethodError) |
|
| TEST (FlMethodChannelTest, InvokeMethodNotImplemented) |
|
| TEST (FlMethodChannelTest, InvokeMethodFailure) |
|
| TEST (FlMethodChannelTest, ReceiveMethodCallRespondSuccess) |
|
| TEST (FlMethodChannelTest, ReceiveMethodCallRespondError) |
|
| TEST (FlMethodChannelTest, ReceiveMethodCallRespondNotImplemented) |
|
| G_DECLARE_FINAL_TYPE (TestMethodCodec, test_method_codec, TEST, METHOD_CODEC, FlMethodCodec) struct _TestMethodCodec |
|
static void | test_method_codec_dispose (GObject *object) |
|
static GBytes * | test_method_codec_encode_method_call (FlMethodCodec *codec, const gchar *name, FlValue *args, GError **error) |
|
static gboolean | test_method_codec_decode_method_call (FlMethodCodec *codec, GBytes *message, gchar **name, FlValue **args, GError **error) |
|
static GBytes * | test_method_codec_encode_success_envelope (FlMethodCodec *codec, FlValue *result, GError **error) |
|
static GBytes * | test_method_codec_encode_error_envelope (FlMethodCodec *codec, const gchar *code, const gchar *message, FlValue *details, GError **error) |
|
static FlMethodResponse * | test_method_codec_decode_response (FlMethodCodec *codec, GBytes *message, GError **error) |
|
static void | test_method_codec_class_init (TestMethodCodecClass *klass) |
|
static void | test_method_codec_init (TestMethodCodec *self) |
|
TestMethodCodec * | test_method_codec_new () |
|
| TEST (FlMethodChannelTest, ReceiveMethodCallRespondSuccessError) |
|
| TEST (FlMethodChannelTest, ReceiveMethodCallRespondErrorError) |
|
| TEST (FlMethodChannelTest, ReplaceADisposedMethodChannel) |
|
| TEST (FlMethodChannelTest, DisposeAReplacedMethodChannel) |
|
| TEST (FlMethodChannelTest, CustomType) |
|
◆ G_DECLARE_FINAL_TYPE()
G_DECLARE_FINAL_TYPE |
( |
TestMethodCodec |
, |
|
|
test_method_codec |
, |
|
|
TEST |
, |
|
|
METHOD_CODEC |
, |
|
|
FlMethodCodec |
|
|
) |
| |
◆ TEST() [1/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
CustomType |
|
|
) |
| |
Definition at line 657 of file fl_method_channel_test.cc.
658 g_autoptr(GMainLoop) loop = g_main_loop_new(
nullptr, 0);
660 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
661 fl_mock_binary_messenger_set_standard_method_channel(
663 [](FlMockBinaryMessenger* messenger, GTask* task,
const gchar* name,
671 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
675 channel,
"Test",
args,
nullptr,
676 [](GObject*
object, GAsyncResult* result, gpointer
user_data) {
677 g_autoptr(GError)
error =
nullptr;
678 g_autoptr(FlMethodResponse) response =
681 EXPECT_EQ(response,
nullptr);
682 EXPECT_NE(
error,
nullptr);
683 EXPECT_STREQ(
error->message,
"Custom value not implemented");
685 g_main_loop_quit(
static_cast<GMainLoop*
>(
user_data));
689 g_main_loop_run(loop);
References args, error, fl_method_channel_invoke_method(), fl_method_channel_invoke_method_finish(), fl_method_channel_new(), fl_method_success_response_new(), fl_standard_method_codec_new(), fl_value_new_custom(), and user_data.
◆ TEST() [2/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
DisposeAReplacedMethodChannel |
|
|
) |
| |
Definition at line 592 of file fl_method_channel_test.cc.
593 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
599 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
603 [](FlMethodChannel* channel, FlMethodCall*
method_call,
605 int* first_count =
static_cast<int*
>(
user_data);
611 &first_count,
nullptr);
613 fl_mock_binary_messenger_invoke_standard_method(
614 messenger,
"test",
"Test",
nullptr,
615 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
618 EXPECT_EQ(first_count, 1);
622 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
623 int second_count = 0;
626 [](FlMethodChannel* channel, FlMethodCall*
method_call,
628 int* second_count =
static_cast<int*
>(
user_data);
634 &second_count,
nullptr);
636 fl_mock_binary_messenger_invoke_standard_method(
637 messenger,
"test",
"Test",
nullptr,
638 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
641 EXPECT_EQ(first_count, 1);
642 EXPECT_EQ(second_count, 1);
645 g_object_unref(channel1);
647 fl_mock_binary_messenger_invoke_standard_method(
648 messenger,
"test",
"Test",
nullptr,
649 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
652 EXPECT_EQ(first_count, 1);
653 EXPECT_EQ(second_count, 2);
References fl_method_call_respond_success(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), method_call, and user_data.
◆ TEST() [3/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
InvokeMethod |
|
|
) |
| |
Definition at line 14 of file fl_method_channel_test.cc.
15 g_autoptr(GMainLoop) loop = g_main_loop_new(
nullptr, 0);
17 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
18 fl_mock_binary_messenger_set_standard_method_channel(
20 [](FlMockBinaryMessenger* messenger, GTask* task,
const gchar* name,
22 EXPECT_STREQ(name,
"Test");
32 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
36 channel,
"Test",
args,
nullptr,
37 [](GObject*
object, GAsyncResult* result, gpointer
user_data) {
38 g_autoptr(GError)
error =
nullptr;
39 g_autoptr(FlMethodResponse) response =
42 EXPECT_NE(response,
nullptr);
43 EXPECT_EQ(
error,
nullptr);
46 EXPECT_NE(r,
nullptr);
47 EXPECT_EQ(
error,
nullptr);
52 g_main_loop_quit(
static_cast<GMainLoop*
>(
user_data));
56 g_main_loop_run(loop);
References args, error, fl_method_channel_invoke_method(), fl_method_channel_invoke_method_finish(), fl_method_channel_new(), fl_method_response_get_result(), fl_method_success_response_new(), fl_standard_method_codec_new(), fl_value_get_string(), fl_value_get_type(), fl_value_new_string(), FL_VALUE_TYPE_STRING, and user_data.
◆ TEST() [4/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
InvokeMethodError |
|
|
) |
| |
Definition at line 101 of file fl_method_channel_test.cc.
102 g_autoptr(GMainLoop) loop = g_main_loop_new(
nullptr, 0);
104 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
105 fl_mock_binary_messenger_set_standard_method_channel(
107 [](FlMockBinaryMessenger* messenger, GTask* task,
const gchar* name,
109 EXPECT_STREQ(name,
"Test");
111 return FL_METHOD_RESPONSE(
118 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
121 channel,
"Test",
nullptr,
nullptr,
122 [](GObject*
object, GAsyncResult* result, gpointer
user_data) {
123 g_autoptr(GError)
error =
nullptr;
124 g_autoptr(FlMethodResponse) response =
127 EXPECT_NE(response,
nullptr);
128 EXPECT_EQ(
error,
nullptr);
130 EXPECT_TRUE(FL_IS_METHOD_ERROR_RESPONSE(response));
132 FL_METHOD_ERROR_RESPONSE(response)),
135 FL_METHOD_ERROR_RESPONSE(response)),
138 FL_METHOD_ERROR_RESPONSE(response));
139 EXPECT_NE(details,
nullptr);
143 g_main_loop_quit(
static_cast<GMainLoop*
>(
user_data));
147 g_main_loop_run(loop);
References args, error, fl_method_channel_invoke_method(), fl_method_channel_invoke_method_finish(), fl_method_channel_new(), fl_method_error_response_get_code(), fl_method_error_response_get_details(), fl_method_error_response_get_message(), fl_method_error_response_new(), fl_standard_method_codec_new(), fl_value_get_string(), fl_value_get_type(), fl_value_new_string(), FL_VALUE_TYPE_STRING, and user_data.
◆ TEST() [5/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
InvokeMethodFailure |
|
|
) |
| |
Definition at line 188 of file fl_method_channel_test.cc.
189 g_autoptr(GMainLoop) loop = g_main_loop_new(
nullptr, 0);
191 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
192 fl_mock_binary_messenger_set_error_channel(messenger,
"test", 42,
"ERROR");
196 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
199 channel,
"Test",
nullptr,
nullptr,
200 [](GObject*
object, GAsyncResult* result, gpointer
user_data) {
201 g_autoptr(GError)
error =
nullptr;
202 g_autoptr(FlMethodResponse) response =
205 EXPECT_EQ(response,
nullptr);
206 EXPECT_NE(
error,
nullptr);
208 EXPECT_EQ(
error->code, 42);
209 EXPECT_STREQ(
error->message,
"ERROR");
211 g_main_loop_quit(
static_cast<GMainLoop*
>(
user_data));
215 g_main_loop_run(loop);
References error, fl_method_channel_invoke_method(), fl_method_channel_invoke_method_finish(), fl_method_channel_new(), fl_standard_method_codec_new(), and user_data.
◆ TEST() [6/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
InvokeMethodNotImplemented |
|
|
) |
| |
Definition at line 151 of file fl_method_channel_test.cc.
152 g_autoptr(GMainLoop) loop = g_main_loop_new(
nullptr, 0);
154 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
155 fl_mock_binary_messenger_set_standard_method_channel(
157 [](FlMockBinaryMessenger* messenger, GTask* task,
const gchar* name,
159 EXPECT_STREQ(name,
"Test");
166 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
169 channel,
"Test",
nullptr,
nullptr,
170 [](GObject*
object, GAsyncResult* result, gpointer
user_data) {
171 g_autoptr(GError)
error =
nullptr;
172 g_autoptr(FlMethodResponse) response =
175 EXPECT_NE(response,
nullptr);
176 EXPECT_EQ(
error,
nullptr);
178 EXPECT_TRUE(FL_IS_METHOD_NOT_IMPLEMENTED_RESPONSE(response));
180 g_main_loop_quit(
static_cast<GMainLoop*
>(
user_data));
184 g_main_loop_run(loop);
References args, error, fl_method_channel_invoke_method(), fl_method_channel_invoke_method_finish(), fl_method_channel_new(), fl_method_not_implemented_response_new(), fl_standard_method_codec_new(), and user_data.
◆ TEST() [7/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
InvokeMethodNullptrArgsMessage |
|
|
) |
| |
Definition at line 60 of file fl_method_channel_test.cc.
61 g_autoptr(GMainLoop) loop = g_main_loop_new(
nullptr, 0);
63 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
64 fl_mock_binary_messenger_set_standard_method_channel(
66 [](FlMockBinaryMessenger* messenger, GTask* task,
const gchar* name,
68 EXPECT_STREQ(name,
"Test");
76 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
79 channel,
"Test",
nullptr,
nullptr,
80 [](GObject*
object, GAsyncResult* result, gpointer
user_data) {
81 g_autoptr(GError)
error =
nullptr;
82 g_autoptr(FlMethodResponse) response =
85 EXPECT_NE(response,
nullptr);
86 EXPECT_EQ(
error,
nullptr);
89 EXPECT_NE(r,
nullptr);
90 EXPECT_EQ(
error,
nullptr);
93 g_main_loop_quit(
static_cast<GMainLoop*
>(
user_data));
97 g_main_loop_run(loop);
References args, error, fl_method_channel_invoke_method(), fl_method_channel_invoke_method_finish(), fl_method_channel_new(), fl_method_response_get_result(), fl_method_success_response_new(), fl_standard_method_codec_new(), fl_value_get_type(), FL_VALUE_TYPE_NULL, and user_data.
◆ TEST() [8/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
ReceiveMethodCallRespondError |
|
|
) |
| |
Definition at line 264 of file fl_method_channel_test.cc.
265 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
269 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
272 [](FlMethodChannel* channel, FlMethodCall*
method_call,
281 g_autoptr(GError)
error =
nullptr;
284 EXPECT_EQ(
error,
nullptr);
290 gboolean called = FALSE;
291 fl_mock_binary_messenger_invoke_standard_method(
292 messenger,
"test",
"Test",
args,
293 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
295 gboolean* called =
static_cast<gboolean*
>(
user_data);
298 EXPECT_TRUE(FL_IS_METHOD_ERROR_RESPONSE(response));
300 FL_METHOD_ERROR_RESPONSE(response)),
303 FL_METHOD_ERROR_RESPONSE(response)),
306 FL_METHOD_ERROR_RESPONSE(response));
References args, error, fl_method_call_get_args(), fl_method_call_get_name(), fl_method_call_respond_error(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_method_error_response_get_code(), fl_method_error_response_get_details(), fl_method_error_response_get_message(), fl_standard_method_codec_new(), fl_value_get_string(), fl_value_get_type(), fl_value_new_string(), FL_VALUE_TYPE_STRING, method_call, TRUE, and user_data.
◆ TEST() [9/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
ReceiveMethodCallRespondErrorError |
|
|
) |
| |
Definition at line 492 of file fl_method_channel_test.cc.
493 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
497 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
498 gboolean called = FALSE;
501 [](FlMethodChannel* channel, FlMethodCall*
method_call,
503 gboolean* called =
static_cast<gboolean*
>(
user_data);
507 g_autoptr(GError) response_error =
nullptr;
509 details, &response_error));
510 EXPECT_NE(response_error,
nullptr);
511 EXPECT_STREQ(response_error->message,
"Unsupported type");
516 fl_mock_binary_messenger_invoke_standard_method(messenger,
"test",
"Test",
517 nullptr,
nullptr,
nullptr);
References fl_method_call_respond_error(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_value_new_int(), method_call, test_method_codec_new(), TRUE, and user_data.
◆ TEST() [10/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
ReceiveMethodCallRespondNotImplemented |
|
|
) |
| |
Definition at line 315 of file fl_method_channel_test.cc.
316 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
320 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
323 [](FlMethodChannel* channel, FlMethodCall*
method_call,
331 g_autoptr(GError)
error =
nullptr;
334 EXPECT_EQ(
error,
nullptr);
340 gboolean called = FALSE;
341 fl_mock_binary_messenger_invoke_standard_method(
342 messenger,
"test",
"Test",
args,
343 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
345 gboolean* called =
static_cast<gboolean*
>(
user_data);
348 EXPECT_TRUE(FL_IS_METHOD_NOT_IMPLEMENTED_RESPONSE(response));
References args, error, fl_method_call_get_args(), fl_method_call_get_name(), fl_method_call_respond_not_implemented(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), fl_value_get_string(), fl_value_get_type(), fl_value_new_string(), FL_VALUE_TYPE_STRING, method_call, TRUE, and user_data.
◆ TEST() [11/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
ReceiveMethodCallRespondSuccess |
|
|
) |
| |
Definition at line 219 of file fl_method_channel_test.cc.
220 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
224 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
227 [](FlMethodChannel* channel, FlMethodCall*
method_call,
236 g_autoptr(GError)
error =
nullptr;
239 EXPECT_EQ(
error,
nullptr);
245 gboolean called = FALSE;
246 fl_mock_binary_messenger_invoke_standard_method(
247 messenger,
"test",
"Test",
args,
248 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
250 gboolean* called =
static_cast<gboolean*
>(
user_data);
253 EXPECT_TRUE(FL_IS_METHOD_SUCCESS_RESPONSE(response));
255 FL_METHOD_SUCCESS_RESPONSE(response));
References args, error, fl_method_call_get_args(), fl_method_call_get_name(), fl_method_call_respond_success(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_method_success_response_get_result(), fl_standard_method_codec_new(), fl_value_get_string(), fl_value_get_type(), fl_value_new_string(), FL_VALUE_TYPE_STRING, method_call, TRUE, and user_data.
◆ TEST() [12/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
ReceiveMethodCallRespondSuccessError |
|
|
) |
| |
Definition at line 454 of file fl_method_channel_test.cc.
455 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
459 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
460 gboolean called = FALSE;
463 [](FlMethodChannel* channel, FlMethodCall*
method_call,
465 gboolean* called =
static_cast<gboolean*
>(
user_data);
469 g_autoptr(GError) response_error =
nullptr;
472 EXPECT_NE(response_error,
nullptr);
473 EXPECT_STREQ(response_error->message,
"Unsupported type");
481 fl_mock_binary_messenger_invoke_standard_method(
482 messenger,
"test",
"Test",
nullptr,
483 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
References fl_method_call_respond_not_implemented(), fl_method_call_respond_success(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_value_new_int(), method_call, test_method_codec_new(), TRUE, and user_data.
◆ TEST() [13/13]
TEST |
( |
FlMethodChannelTest |
, |
|
|
ReplaceADisposedMethodChannel |
|
|
) |
| |
Definition at line 529 of file fl_method_channel_test.cc.
530 g_autoptr(FlMockBinaryMessenger) messenger = fl_mock_binary_messenger_new();
536 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
540 [](FlMethodChannel* channel, FlMethodCall*
method_call,
542 int* first_count =
static_cast<int*
>(
user_data);
548 &first_count,
nullptr);
550 fl_mock_binary_messenger_invoke_standard_method(
551 messenger,
"test",
"Test",
nullptr,
552 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
555 EXPECT_EQ(first_count, 1);
558 g_object_unref(channel1);
562 FL_BINARY_MESSENGER(messenger),
"test", FL_METHOD_CODEC(codec));
563 int second_count = 0;
566 [](FlMethodChannel* channel, FlMethodCall*
method_call,
568 int* second_count =
static_cast<int*
>(
user_data);
574 &second_count,
nullptr);
576 fl_mock_binary_messenger_invoke_standard_method(
577 messenger,
"test",
"Test",
nullptr,
578 [](FlMockBinaryMessenger* messenger, FlMethodResponse* response,
581 EXPECT_EQ(first_count, 1);
582 EXPECT_EQ(second_count, 1);
References fl_method_call_respond_success(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), method_call, and user_data.
◆ test_method_codec_class_init()
static void test_method_codec_class_init |
( |
TestMethodCodecClass * |
klass | ) |
|
|
static |
◆ test_method_codec_decode_method_call()
static gboolean test_method_codec_decode_method_call |
( |
FlMethodCodec * |
codec, |
|
|
GBytes * |
message, |
|
|
gchar ** |
name, |
|
|
FlValue ** |
args, |
|
|
GError ** |
error |
|
) |
| |
|
static |
◆ test_method_codec_decode_response()
static FlMethodResponse* test_method_codec_decode_response |
( |
FlMethodCodec * |
codec, |
|
|
GBytes * |
message, |
|
|
GError ** |
error |
|
) |
| |
|
static |
◆ test_method_codec_dispose()
static void test_method_codec_dispose |
( |
GObject * |
object | ) |
|
|
static |
◆ test_method_codec_encode_error_envelope()
static GBytes* test_method_codec_encode_error_envelope |
( |
FlMethodCodec * |
codec, |
|
|
const gchar * |
code, |
|
|
const gchar * |
message, |
|
|
FlValue * |
details, |
|
|
GError ** |
error |
|
) |
| |
|
static |
◆ test_method_codec_encode_method_call()
static GBytes* test_method_codec_encode_method_call |
( |
FlMethodCodec * |
codec, |
|
|
const gchar * |
name, |
|
|
FlValue * |
args, |
|
|
GError ** |
error |
|
) |
| |
|
static |
◆ test_method_codec_encode_success_envelope()
static GBytes* test_method_codec_encode_success_envelope |
( |
FlMethodCodec * |
codec, |
|
|
FlValue * |
result, |
|
|
GError ** |
error |
|
) |
| |
|
static |
◆ test_method_codec_init()
static void test_method_codec_init |
( |
TestMethodCodec * |
self | ) |
|
|
static |
◆ test_method_codec_new()
TestMethodCodec* test_method_codec_new |
( |
| ) |
|
GBytes * fl_method_codec_encode_method_call(FlMethodCodec *self, const gchar *name, FlValue *args, GError **error)
G_MODULE_EXPORT FlMethodChannel * fl_method_channel_new(FlBinaryMessenger *messenger, const gchar *name, FlMethodCodec *codec)
G_MODULE_EXPORT FlMethodErrorResponse * fl_method_error_response_new(const gchar *code, const gchar *message, FlValue *details)
static GBytes * test_method_codec_encode_method_call(FlMethodCodec *codec, const gchar *name, FlValue *args, GError **error)
G_MODULE_EXPORT FlMethodNotImplementedResponse * fl_method_not_implemented_response_new()
G_MODULE_EXPORT FlStandardMethodCodec * fl_standard_method_codec_new()
G_MODULE_EXPORT FlMethodResponse * fl_method_channel_invoke_method_finish(FlMethodChannel *self, GAsyncResult *result, GError **error)
typedefG_BEGIN_DECLS struct _FlValue FlValue
G_MODULE_EXPORT FlValue * fl_value_new_custom(int type, gconstpointer value, GDestroyNotify destroy_notify)
G_MODULE_EXPORT FlValue * fl_method_response_get_result(FlMethodResponse *self, GError **error)
G_MODULE_EXPORT FlValue * fl_value_new_int(int64_t value)
const G_MODULE_EXPORT gchar * fl_value_get_string(FlValue *self)
static GBytes * test_method_codec_encode_error_envelope(FlMethodCodec *codec, const gchar *code, const gchar *message, FlValue *details, GError **error)
const G_MODULE_EXPORT gchar * fl_method_error_response_get_message(FlMethodErrorResponse *self)
G_MODULE_EXPORT FlMethodSuccessResponse * fl_method_success_response_new(FlValue *result)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue gpointer user_data
G_MODULE_EXPORT FlValue * fl_method_error_response_get_details(FlMethodErrorResponse *self)
TestMethodCodec * test_method_codec_new()
G_MODULE_EXPORT FlValueType fl_value_get_type(FlValue *self)
G_MODULE_EXPORT gboolean fl_method_call_respond_success(FlMethodCall *self, FlValue *result, GError **error)
G_MODULE_EXPORT gboolean fl_method_call_respond_not_implemented(FlMethodCall *self, GError **error)
G_BEGIN_DECLS G_MODULE_EXPORT FlMethodCall * method_call
static gboolean test_method_codec_decode_method_call(FlMethodCodec *codec, GBytes *message, gchar **name, FlValue **args, GError **error)
gboolean fl_method_codec_decode_method_call(FlMethodCodec *self, GBytes *message, gchar **name, FlValue **args, GError **error)
const G_MODULE_EXPORT gchar * fl_method_call_get_name(FlMethodCall *self)
G_MODULE_EXPORT FlValue * fl_method_success_response_get_result(FlMethodSuccessResponse *self)
@ FL_MESSAGE_CODEC_ERROR_FAILED
FlMethodResponse * fl_method_codec_decode_response(FlMethodCodec *self, GBytes *message, GError **error)
G_MODULE_EXPORT void fl_method_channel_invoke_method(FlMethodChannel *self, const gchar *method, FlValue *args, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
static GBytes * test_method_codec_encode_success_envelope(FlMethodCodec *codec, FlValue *result, GError **error)
G_MODULE_EXPORT void fl_method_channel_set_method_call_handler(FlMethodChannel *self, FlMethodChannelMethodCallHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
const G_MODULE_EXPORT gchar * fl_method_error_response_get_code(FlMethodErrorResponse *self)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
const uint8_t uint32_t uint32_t GError ** error
G_MODULE_EXPORT gboolean fl_method_call_respond_error(FlMethodCall *self, const gchar *code, const gchar *message, FlValue *details, GError **error)
static FlMethodResponse * test_method_codec_decode_response(FlMethodCodec *codec, GBytes *message, GError **error)
static void test_method_codec_dispose(GObject *object)
G_MODULE_EXPORT FlValue * fl_method_call_get_args(FlMethodCall *self)
G_MODULE_EXPORT FlValue * fl_value_new_string(const gchar *value)
#define FL_MESSAGE_CODEC_ERROR