#include <utility>#include "flutter/shell/platform/linux/fl_binary_messenger_private.h"#include "flutter/shell/platform/linux/fl_method_codec_private.h"#include "flutter/shell/platform/linux/fl_text_input_handler.h"#include "flutter/shell/platform/linux/testing/fl_mock_binary_messenger.h"#include "flutter/shell/platform/linux/testing/fl_test.h"#include "flutter/shell/platform/linux/testing/mock_gtk.h"#include "flutter/testing/testing.h"#include "flutter/shell/platform/linux/testing/linux_test.h"#include "gmock/gmock.h"#include "gtest/gtest.h"Go to the source code of this file.
Classes | |
| struct | InputConfig |
| struct | EditingState |
| struct | EditingDelta |
| class | FlTextInputHandlerTest |
|
static |
Definition at line 86 of file fl_text_input_handler_test.cc.
References build_map(), EditingDelta::composing_base, EditingDelta::composing_extent, EditingDelta::delta_end, EditingDelta::delta_start, EditingDelta::delta_text, fl_value_new_bool(), fl_value_new_int(), fl_value_new_string(), EditingDelta::old_text, EditingDelta::selection_base, and EditingDelta::selection_extent.
|
static |
Definition at line 63 of file fl_text_input_handler_test.cc.
References build_map(), EditingState::composing_base, EditingState::composing_extent, fl_value_new_bool(), fl_value_new_int(), fl_value_new_string(), EditingState::selection_base, EditingState::selection_extent, and EditingState::text.
Referenced by set_editing_state(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 42 of file fl_text_input_handler_test.cc.
References build_list(), build_map(), InputConfig::client_id, InputConfig::enable_delta_model, fl_value_new_bool(), fl_value_new_int(), fl_value_new_string(), InputConfig::input_action, and InputConfig::input_type.
Referenced by set_client().
Definition at line 27 of file fl_text_input_handler_test.cc.
References args, fl_value_append_take(), fl_value_new_list(), and value.
Referenced by build_input_config(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
Definition at line 19 of file fl_text_input_handler_test.cc.
References args, fl_value_new_map(), fl_value_set_string_take(), and value.
Referenced by build_editing_delta(), build_editing_state(), build_input_config(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 144 of file fl_text_input_handler_test.cc.
References fl_key_event_new_from_gdk_event(), fl_text_input_handler_filter_keypress(), g_autoptr(), handler, and key_event.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 101 of file fl_text_input_handler_test.cc.
References args, build_input_config(), fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_value_equal(), fl_value_new_null(), g_autoptr(), TRUE, and user_data.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 122 of file fl_text_input_handler_test.cc.
References args, build_editing_state(), fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_value_equal(), fl_value_new_null(), g_autoptr(), TRUE, and user_data.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| TEST_F | ( | FlTextInputHandlerTest | , |
| ClearClient | |||
| ) |
Definition at line 225 of file fl_text_input_handler_test.cc.
References fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_value_equal(), fl_value_new_null(), g_autoptr(), TRUE, and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| Composing | |||
| ) |
Definition at line 457 of file fl_text_input_handler_test.cc.
References args, build_editing_state(), build_list(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), gtk_im_context_get_preedit_string(), handler, name, and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| ComposingDelta | |||
| ) |
Definition at line 793 of file fl_text_input_handler_test.cc.
References args, build_editing_delta(), build_list(), build_map(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), gtk_im_context_get_preedit_string(), handler, name, set_client(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| DefaultInputPurposeAndHints | |||
| ) |
Definition at line 1234 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| Hide | |||
| ) |
Definition at line 203 of file fl_text_input_handler_test.cc.
References fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_value_equal(), fl_value_new_null(), g_autoptr(), gtk_im_context_focus_out(), TRUE, and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsAddress | |||
| ) |
Definition at line 1174 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsMultiline | |||
| ) |
Definition at line 1188 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsTwitter | |||
| ) |
Definition at line 1218 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsWebSearch | |||
| ) |
Definition at line 1204 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeEmail | |||
| ) |
Definition at line 1118 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeName | |||
| ) |
Definition at line 1160 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeNumber | |||
| ) |
Definition at line 1090 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposePassword | |||
| ) |
Definition at line 1146 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposePhone | |||
| ) |
Definition at line 1104 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeUrl | |||
| ) |
Definition at line 1132 of file fl_text_input_handler_test.cc.
References g_object_set(), and set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| MessageHandler | |||
| ) |
Definition at line 172 of file fl_text_input_handler_test.cc.
References fl_mock_binary_messenger_has_handler().
| TEST_F | ( | FlTextInputHandlerTest | , |
| MoveCursor | |||
| ) |
Definition at line 345 of file fl_text_input_handler_test.cc.
References args, build_editing_state(), build_list(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_value_equal(), fl_value_new_int(), g_autoptr(), handler, name, send_key_event(), set_client(), set_editing_state(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| MultilineWithSendAction | |||
| ) |
Definition at line 296 of file fl_text_input_handler_test.cc.
References args, build_list(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_value_equal(), fl_value_new_int(), fl_value_new_string(), g_autoptr(), handler, name, send_key_event(), set_client(), set_editing_state(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| NonComposingDelta | |||
| ) |
Definition at line 898 of file fl_text_input_handler_test.cc.
References args, build_editing_delta(), build_list(), build_map(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), handler, name, set_client(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| PerformAction | |||
| ) |
Definition at line 245 of file fl_text_input_handler_test.cc.
References args, build_editing_state(), build_list(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_value_equal(), fl_value_new_int(), fl_value_new_string(), g_autoptr(), handler, name, send_key_event(), set_client(), set_editing_state(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| Select | |||
| ) |
Definition at line 401 of file fl_text_input_handler_test.cc.
References args, build_editing_state(), build_list(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_value_equal(), fl_value_new_int(), g_autoptr(), handler, name, send_key_event(), set_client(), set_editing_state(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| SetClient | |||
| ) |
Definition at line 177 of file fl_text_input_handler_test.cc.
References set_client().
| TEST_F | ( | FlTextInputHandlerTest | , |
| SetMarkedTextRect | |||
| ) |
Definition at line 588 of file fl_text_input_handler_test.cc.
References build_list(), build_map(), fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_text_input_handler_get_im_context(), fl_text_input_handler_set_widget(), fl_value_equal(), fl_value_new_float(), fl_value_new_null(), g_autoptr(), gtk_im_context_set_cursor_location(), gtk_widget_translate_coordinates(), gtk_window_new(), handler, TRUE, user_data, and window.
| TEST_F | ( | FlTextInputHandlerTest | , |
| SetMarkedTextRectWithoutWidget | |||
| ) |
Definition at line 685 of file fl_text_input_handler_test.cc.
References build_map(), fl_mock_binary_messenger_invoke_json_method(), fl_text_input_handler_get_im_context(), fl_value_new_float(), g_autoptr(), gtk_widget_translate_coordinates(), handler, TRUE, and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| Show | |||
| ) |
Definition at line 181 of file fl_text_input_handler_test.cc.
References fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_value_equal(), fl_value_new_null(), g_autoptr(), gtk_im_context_focus_in(), TRUE, and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| SurroundingText | |||
| ) |
Definition at line 532 of file fl_text_input_handler_test.cc.
References args, build_editing_state(), build_list(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), gtk_im_context_set_surrounding(), handler, name, set_client(), set_editing_state(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| TextEditingDelta | |||
| ) |
Definition at line 738 of file fl_text_input_handler_test.cc.
References args, build_editing_delta(), build_list(), build_map(), fl_method_success_response_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_value_equal(), fl_value_new_int(), g_autoptr(), handler, name, send_key_event(), set_client(), set_editing_state(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| TextInputTypeNone | |||
| ) |
Definition at line 710 of file fl_text_input_handler_test.cc.
References fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_value_equal(), fl_value_new_null(), g_autoptr(), gtk_im_context_focus_in(), gtk_im_context_focus_out(), set_client(), TRUE, and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| UpdateConfig | |||
| ) |
Definition at line 1248 of file fl_text_input_handler_test.cc.
References args, build_list(), build_map(), fl_method_success_response_get_result(), fl_method_success_response_new(), fl_mock_binary_messenger_invoke_json_method(), fl_mock_binary_messenger_set_json_method_channel(), fl_value_equal(), fl_value_new_bool(), fl_value_new_int(), fl_value_new_null(), fl_value_new_string(), g_autoptr(), handler, name, send_key_event(), set_client(), set_editing_state(), TRUE, and user_data.