#include "flutter/shell/platform/linux/testing/mock_binary_messenger.h"
#include "flutter/shell/platform/linux/testing/mock_binary_messenger_response_handle.h"
Go to the source code of this file.
|
| G_DECLARE_FINAL_TYPE (FlMockBinaryMessenger, fl_mock_binary_messenger, FL, MOCK_BINARY_MESSENGER, GObject) struct _FlMockBinaryMessenger |
|
static FlBinaryMessenger * | fl_mock_binary_messenger_new (MockBinaryMessenger *mock) |
|
static void | fl_mock_binary_messenger_iface_init (FlBinaryMessengerInterface *iface) |
|
| G_DEFINE_TYPE_WITH_CODE (FlMockBinaryMessenger, fl_mock_binary_messenger, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_binary_messenger_get_type(), fl_mock_binary_messenger_iface_init)) static void fl_mock_binary_messenger_class_init(FlMockBinaryMessengerClass *klass) |
|
static void | fl_mock_binary_messenger_set_message_handler_on_channel (FlBinaryMessenger *messenger, const gchar *channel, FlBinaryMessengerMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify) |
|
static gboolean | fl_mock_binary_messenger_send_response (FlBinaryMessenger *messenger, FlBinaryMessengerResponseHandle *response_handle, GBytes *response, GError **error) |
|
static void | fl_mock_binary_messenger_send_on_channel (FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
|
static GBytes * | fl_mock_binary_messenger_send_on_channel_finish (FlBinaryMessenger *messenger, GAsyncResult *result, GError **error) |
|
static void | fl_mock_binary_messenger_resize_channel (FlBinaryMessenger *messenger, const gchar *channel, int64_t new_size) |
|
static void | fl_mock_binary_messenger_set_warns_on_channel_overflow (FlBinaryMessenger *messenger, const gchar *channel, bool warns) |
|
static void | fl_mock_binary_messenger_init (FlMockBinaryMessenger *self) |
|
◆ fl_mock_binary_messenger_iface_init()
static void fl_mock_binary_messenger_iface_init |
( |
FlBinaryMessengerInterface * |
iface | ) |
|
|
static |
Definition at line 144 of file mock_binary_messenger.cc.
145 {
146 iface->set_message_handler_on_channel =
150 iface->send_on_channel_finish =
153 iface->set_warns_on_channel_overflow =
155}
static void fl_mock_binary_messenger_set_message_handler_on_channel(FlBinaryMessenger *messenger, const gchar *channel, FlBinaryMessengerMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
static void fl_mock_binary_messenger_resize_channel(FlBinaryMessenger *messenger, const gchar *channel, int64_t new_size)
static gboolean fl_mock_binary_messenger_send_response(FlBinaryMessenger *messenger, FlBinaryMessengerResponseHandle *response_handle, GBytes *response, GError **error)
static void fl_mock_binary_messenger_set_warns_on_channel_overflow(FlBinaryMessenger *messenger, const gchar *channel, bool warns)
static void fl_mock_binary_messenger_send_on_channel(FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
static GBytes * fl_mock_binary_messenger_send_on_channel_finish(FlBinaryMessenger *messenger, GAsyncResult *result, GError **error)
◆ fl_mock_binary_messenger_init()
static void fl_mock_binary_messenger_init |
( |
FlMockBinaryMessenger * |
self | ) |
|
|
static |
◆ fl_mock_binary_messenger_new()
Definition at line 21 of file mock_binary_messenger.cc.
22 {
23 FlMockBinaryMessenger*
self = FL_MOCK_BINARY_MESSENGER(
24 g_object_new(fl_mock_binary_messenger_get_type(), nullptr));
26 return FL_BINARY_MESSENGER(
self);
27}
◆ fl_mock_binary_messenger_resize_channel()
static void fl_mock_binary_messenger_resize_channel |
( |
FlBinaryMessenger * |
messenger, |
|
|
const gchar * |
channel, |
|
|
int64_t |
new_size |
|
) |
| |
|
static |
Definition at line 125 of file mock_binary_messenger.cc.
128 {
129 g_return_if_fail(FL_IS_MOCK_BINARY_MESSENGER(messenger));
130 FlMockBinaryMessenger*
self = FL_MOCK_BINARY_MESSENGER(messenger);
131 self->mock->fl_binary_messenger_resize_channel(messenger, channel, new_size);
132}
◆ fl_mock_binary_messenger_send_on_channel()
static void fl_mock_binary_messenger_send_on_channel |
( |
FlBinaryMessenger * |
messenger, |
|
|
const gchar * |
channel, |
|
|
GBytes * |
message, |
|
|
GCancellable * |
cancellable, |
|
|
GAsyncReadyCallback |
callback, |
|
|
gpointer |
user_data |
|
) |
| |
|
static |
Definition at line 102 of file mock_binary_messenger.cc.
108 {
109 g_return_if_fail(FL_IS_MOCK_BINARY_MESSENGER(messenger));
110 FlMockBinaryMessenger*
self = FL_MOCK_BINARY_MESSENGER(messenger);
111 self->mock->fl_binary_messenger_send_on_channel(
113}
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ fl_mock_binary_messenger_send_on_channel_finish()
static GBytes * fl_mock_binary_messenger_send_on_channel_finish |
( |
FlBinaryMessenger * |
messenger, |
|
|
GAsyncResult * |
result, |
|
|
GError ** |
error |
|
) |
| |
|
static |
Definition at line 115 of file mock_binary_messenger.cc.
118 {
119 g_return_val_if_fail(FL_IS_MOCK_BINARY_MESSENGER(messenger), nullptr);
120 FlMockBinaryMessenger*
self = FL_MOCK_BINARY_MESSENGER(messenger);
121 return self->mock->fl_binary_messenger_send_on_channel_finish(messenger,
123}
const uint8_t uint32_t uint32_t GError ** error
◆ fl_mock_binary_messenger_send_response()
static gboolean fl_mock_binary_messenger_send_response |
( |
FlBinaryMessenger * |
messenger, |
|
|
FlBinaryMessengerResponseHandle * |
response_handle, |
|
|
GBytes * |
response, |
|
|
GError ** |
error |
|
) |
| |
|
static |
Definition at line 91 of file mock_binary_messenger.cc.
95 {
96 g_return_val_if_fail(FL_IS_MOCK_BINARY_MESSENGER(messenger), false);
97 FlMockBinaryMessenger*
self = FL_MOCK_BINARY_MESSENGER(messenger);
98 return self->mock->fl_binary_messenger_send_response(
99 messenger, response_handle, response,
error);
100}
◆ fl_mock_binary_messenger_set_message_handler_on_channel()
static void fl_mock_binary_messenger_set_message_handler_on_channel |
( |
FlBinaryMessenger * |
messenger, |
|
|
const gchar * |
channel, |
|
|
FlBinaryMessengerMessageHandler |
handler, |
|
|
gpointer |
user_data, |
|
|
GDestroyNotify |
destroy_notify |
|
) |
| |
|
static |
Definition at line 78 of file mock_binary_messenger.cc.
83 {
84 g_return_if_fail(FL_IS_MOCK_BINARY_MESSENGER(messenger));
85 FlMockBinaryMessenger*
self = FL_MOCK_BINARY_MESSENGER(messenger);
87 self->mock->fl_binary_messenger_set_message_handler_on_channel(
88 messenger, channel, handler,
user_data, destroy_notify);
89}
◆ fl_mock_binary_messenger_set_warns_on_channel_overflow()
static void fl_mock_binary_messenger_set_warns_on_channel_overflow |
( |
FlBinaryMessenger * |
messenger, |
|
|
const gchar * |
channel, |
|
|
bool |
warns |
|
) |
| |
|
static |
Definition at line 134 of file mock_binary_messenger.cc.
137 {
138 g_return_if_fail(FL_IS_MOCK_BINARY_MESSENGER(messenger));
139 FlMockBinaryMessenger*
self = FL_MOCK_BINARY_MESSENGER(messenger);
140 self->mock->fl_binary_messenger_set_warns_on_channel_overflow(messenger,
141 channel, warns);
142}
◆ G_DECLARE_FINAL_TYPE()
G_DECLARE_FINAL_TYPE |
( |
FlMockBinaryMessenger |
, |
|
|
fl_mock_binary_messenger |
, |
|
|
FL |
, |
|
|
MOCK_BINARY_MESSENGER |
, |
|
|
GObject |
|
|
) |
| |
◆ G_DEFINE_TYPE_WITH_CODE()
G_DEFINE_TYPE_WITH_CODE |
( |
FlMockBinaryMessenger |
, |
|
|
fl_mock_binary_messenger |
, |
|
|
G_TYPE_OBJECT |
, |
|
|
G_IMPLEMENT_INTERFACE(fl_binary_messenger_get_type(), fl_mock_binary_messenger_iface_init) |
|
|
) |
| |