#include "flutter/shell/platform/linux/fl_key_channel_responder.h"
#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/testing/fl_test.h"
Go to the source code of this file.
Functions | |
static FlValue * | echo_response_cb (FlValue *echoed_value) |
static void | responder_callback (bool handled, gpointer user_data) |
static FlKeyEvent * | fl_key_event_new_by_mock (guint32 time_in_milliseconds, bool is_press, guint keyval, guint16 keycode, GdkModifierType state, gboolean is_modifier) |
TEST (FlKeyChannelResponderTest, SendKeyEvent) | |
void | test_lock_event (guint key_code, const char *down_expected, const char *up_expected) |
TEST (FlKeyChannelResponderTest, SendNumLockKeyEvent) | |
TEST (FlKeyChannelResponderTest, SendCapsLockKeyEvent) | |
TEST (FlKeyChannelResponderTest, SendShiftLockKeyEvent) | |
TEST (FlKeyChannelResponderTest, TestKeyEventHandledByFramework) | |
TEST (FlKeyChannelResponderTest, UseSpecifiedLogicalKey) | |
Variables | |
static const char * | expected_value = nullptr |
static gboolean | expected_handled = FALSE |
Definition at line 16 of file fl_key_channel_responder_test.cc.
References expected_handled, expected_value, fl_value_new_bool(), fl_value_new_map(), fl_value_set_string_take(), fl_value_to_string(), and value.
Referenced by TEST(), and test_lock_event().
|
static |
Definition at line 44 of file fl_key_channel_responder_test.cc.
References _FlKeyEvent::is_press, and state.
Referenced by TEST(), and test_lock_event().
|
static |
Definition at line 27 of file fl_key_channel_responder_test.cc.
References expected_handled, and user_data.
Referenced by TEST(), and test_lock_event().
TEST | ( | FlKeyChannelResponderTest | , |
SendCapsLockKeyEvent | |||
) |
TEST | ( | FlKeyChannelResponderTest | , |
SendKeyEvent | |||
) |
Definition at line 60 of file fl_key_channel_responder_test.cc.
References echo_response_cb(), expected_handled, expected_value, fl_binary_messenger_new(), fl_key_channel_responder_new(), fl_key_event_new_by_mock(), fl_key_responder_handle_event(), make_mock_engine(), responder_callback(), and _FlKeyChannelResponderMock::value_converter.
TEST | ( | FlKeyChannelResponderTest | , |
SendNumLockKeyEvent | |||
) |
TEST | ( | FlKeyChannelResponderTest | , |
SendShiftLockKeyEvent | |||
) |
TEST | ( | FlKeyChannelResponderTest | , |
TestKeyEventHandledByFramework | |||
) |
Definition at line 163 of file fl_key_channel_responder_test.cc.
References echo_response_cb(), expected_handled, expected_value, fl_binary_messenger_new(), fl_key_channel_responder_new(), fl_key_event_new_by_mock(), fl_key_responder_handle_event(), make_mock_engine(), responder_callback(), TRUE, and _FlKeyChannelResponderMock::value_converter.
TEST | ( | FlKeyChannelResponderTest | , |
UseSpecifiedLogicalKey | |||
) |
Definition at line 189 of file fl_key_channel_responder_test.cc.
References echo_response_cb(), expected_handled, expected_value, fl_binary_messenger_new(), fl_key_channel_responder_new(), fl_key_event_new_by_mock(), fl_key_responder_handle_event(), make_mock_engine(), responder_callback(), TRUE, and _FlKeyChannelResponderMock::value_converter.
void test_lock_event | ( | guint | key_code, |
const char * | down_expected, | ||
const char * | up_expected | ||
) |
Definition at line 99 of file fl_key_channel_responder_test.cc.
References echo_response_cb(), expected_handled, expected_value, fl_binary_messenger_new(), fl_key_channel_responder_new(), fl_key_event_new_by_mock(), fl_key_responder_handle_event(), make_mock_engine(), responder_callback(), and _FlKeyChannelResponderMock::value_converter.
Referenced by TEST().
|
static |
Definition at line 14 of file fl_key_channel_responder_test.cc.
Referenced by echo_response_cb(), invoke_record_callback_and_verify(), responder_callback(), TEST(), and test_lock_event().
|
static |
Definition at line 13 of file fl_key_channel_responder_test.cc.
Referenced by echo_response_cb(), TEST(), and test_lock_event().