#include "gtest/gtest.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_basic_message_channel.h"
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/shell/platform/linux/fl_binary_messenger_private.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_message_codec.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_message_codec.h"
#include "flutter/shell/platform/linux/testing/fl_test.h"
#include "flutter/shell/platform/linux/testing/mock_renderer.h"
Go to the source code of this file.
Functions | |
TEST (FlBasicMessageChannelTest, SendMessageWithoutResponse) | |
static void | echo_response_cb (GObject *object, GAsyncResult *result, gpointer user_data) |
TEST (FlBasicMessageChannelTest, SendMessageWithResponse) | |
static void | failure_response_cb (GObject *object, GAsyncResult *result, gpointer user_data) |
TEST (FlBasicMessageChannelTest, SendFailure) | |
static void | message_cb (FlBasicMessageChannel *channel, FlValue *message, FlBasicMessageChannelResponseHandle *response_handle, gpointer user_data) |
static void | response_cb (FlBasicMessageChannel *channel, FlValue *message, FlBasicMessageChannelResponseHandle *response_handle, gpointer user_data) |
TEST (FlBasicMessageChannelTest, ReceiveMessage) | |
static void | null_message_response_cb (GObject *object, GAsyncResult *result, gpointer user_data) |
TEST (FlBasicMessageChannelTest, SendNullMessageWithResponse) | |
|
static |
Definition at line 67 of file fl_basic_message_channel_test.cc.
References error, fl_basic_message_channel_send_finish(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, result, and user_data.
Referenced by TEST().
|
static |
Definition at line 100 of file fl_basic_message_channel_test.cc.
References error, fl_basic_message_channel_send_finish(), result, and user_data.
Referenced by TEST().
|
static |
Definition at line 130 of file fl_basic_message_channel_test.cc.
References error, fl_basic_message_channel_respond(), fl_value_get_string(), fl_value_get_type(), fl_value_new_string(), and FL_VALUE_TYPE_STRING.
Referenced by TEST().
|
static |
Definition at line 196 of file fl_basic_message_channel_test.cc.
References error, fl_basic_message_channel_send_finish(), fl_value_get_type(), FL_VALUE_TYPE_NULL, result, and user_data.
Referenced by TEST().
|
static |
Definition at line 147 of file fl_basic_message_channel_test.cc.
References fl_basic_message_channel_respond(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, and user_data.
Referenced by TEST().
TEST | ( | FlBasicMessageChannelTest | , |
ReceiveMessage | |||
) |
Definition at line 161 of file fl_basic_message_channel_test.cc.
References fl_basic_message_channel_new(), fl_basic_message_channel_send(), fl_basic_message_channel_set_message_handler(), fl_binary_messenger_new(), fl_standard_message_codec_new(), fl_value_new_string(), make_mock_engine(), message_cb(), and response_cb().
TEST | ( | FlBasicMessageChannelTest | , |
SendFailure | |||
) |
Definition at line 113 of file fl_basic_message_channel_test.cc.
References failure_response_cb(), fl_basic_message_channel_new(), fl_basic_message_channel_send(), fl_binary_messenger_new(), fl_standard_message_codec_new(), fl_value_new_string(), and make_mock_engine().
TEST | ( | FlBasicMessageChannelTest | , |
SendMessageWithoutResponse | |||
) |
Definition at line 22 of file fl_basic_message_channel_test.cc.
References fl_basic_message_channel_new(), fl_basic_message_channel_send(), fl_binary_messenger_new(), fl_engine_get_embedder_api(), fl_message_codec_decode_message(), fl_standard_message_codec_new(), fl_value_get_string(), fl_value_get_type(), fl_value_new_string(), FL_VALUE_TYPE_STRING, and make_mock_engine().
TEST | ( | FlBasicMessageChannelTest | , |
SendMessageWithResponse | |||
) |
Definition at line 83 of file fl_basic_message_channel_test.cc.
References echo_response_cb(), fl_basic_message_channel_new(), fl_basic_message_channel_send(), fl_binary_messenger_new(), fl_standard_message_codec_new(), fl_value_new_string(), and make_mock_engine().
TEST | ( | FlBasicMessageChannelTest | , |
SendNullMessageWithResponse | |||
) |
Definition at line 211 of file fl_basic_message_channel_test.cc.
References fl_basic_message_channel_new(), fl_basic_message_channel_send(), fl_binary_messenger_new(), fl_standard_message_codec_new(), make_mock_engine(), and null_message_response_cb().