![]() |
Flutter Engine
The Flutter Engine
|
#include "gtest/gtest.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/fl_method_codec_private.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_basic_message_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_event_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_method_codec.h"
#include "flutter/shell/platform/linux/testing/mock_renderer.h"
Go to the source code of this file.
Classes | |
struct | TestData |
Functions | |
static FlEngine * | make_mock_engine () |
static void | listen_channel (FlBinaryMessenger *messenger, FlValue *args) |
static void | cancel_channel (FlBinaryMessenger *messenger, FlValue *args) |
static FlMethodErrorResponse * | listen_listen_cb (FlEventChannel *channel, FlValue *args, gpointer user_data) |
TEST (FlEventChannelTest, Listen) | |
static FlMethodErrorResponse * | listen_exception_listen_cb (FlEventChannel *channel, FlValue *args, gpointer user_data) |
static void | listen_exception_response_cb (FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, FlBinaryMessengerResponseHandle *response_handle, gpointer user_data) |
TEST (FlEventChannelTest, ListenException) | |
static FlMethodErrorResponse * | cancel_cancel_cb (FlEventChannel *channel, FlValue *args, gpointer user_data) |
TEST (FlEventChannelTest, Cancel) | |
static FlMethodErrorResponse * | cancel_exception_cancel_cb (FlEventChannel *channel, FlValue *args, gpointer user_data) |
static void | cancel_exception_response_cb (FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, FlBinaryMessengerResponseHandle *response_handle, gpointer user_data) |
TEST (FlEventChannelTest, CancelException) | |
static FlMethodErrorResponse * | args_listen_cb (FlEventChannel *channel, FlValue *args, gpointer user_data) |
static FlMethodErrorResponse * | args_cancel_cb (FlEventChannel *channel, FlValue *args, gpointer user_data) |
TEST (FlEventChannelTest, Args) | |
static FlMethodErrorResponse * | send_events_listen_cb (FlEventChannel *channel, FlValue *args, gpointer user_data) |
static void | send_events_events_cb (FlBinaryMessenger *messenger, const gchar *channel, GBytes *message, FlBinaryMessengerResponseHandle *response_handle, gpointer user_data) |
TEST (FlEventChannelTest, Test) | |
TEST (FlEventChannelTest, ReuseChannel) | |
TEST (FlEventChannelTest, ReplaceChannel) | |
|
static |
Definition at line 281 of file fl_event_channel_test.cc.
|
static |
Definition at line 271 of file fl_event_channel_test.cc.
|
static |
Definition at line 165 of file fl_event_channel_test.cc.
|
static |
Definition at line 53 of file fl_event_channel_test.cc.
|
static |
Definition at line 198 of file fl_event_channel_test.cc.
|
static |
Definition at line 208 of file fl_event_channel_test.cc.
|
static |
Definition at line 36 of file fl_event_channel_test.cc.
|
static |
Definition at line 102 of file fl_event_channel_test.cc.
|
static |
Definition at line 112 of file fl_event_channel_test.cc.
|
static |
Definition at line 70 of file fl_event_channel_test.cc.
|
static |
Definition at line 24 of file fl_event_channel_test.cc.
|
static |
Definition at line 333 of file fl_event_channel_test.cc.
|
static |
Definition at line 317 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
Args | |||
) |
Definition at line 293 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
Cancel | |||
) |
Definition at line 176 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
CancelException | |||
) |
Definition at line 241 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
Listen | |||
) |
Definition at line 81 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
ListenException | |||
) |
Definition at line 140 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
ReplaceChannel | |||
) |
Definition at line 432 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
ReuseChannel | |||
) |
Definition at line 396 of file fl_event_channel_test.cc.
TEST | ( | FlEventChannelTest | , |
Test | |||
) |
Definition at line 366 of file fl_event_channel_test.cc.