#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.
Referenced by TEST_F().
|
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(), 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(), 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(), 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(), and g_autoptr().
Referenced by 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_value_equal(), fl_value_new_null(), g_autoptr(), TRUE, and user_data.
Referenced by 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_value_equal(), fl_value_new_null(), g_autoptr(), TRUE, and user_data.
Referenced by 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_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_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), 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_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), set_client(), and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| DefaultInputPurposeAndHints | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| Hide | |||
| ) |
Definition at line 203 of file fl_text_input_handler_test.cc.
References fl_method_success_response_get_result(), fl_value_equal(), fl_value_new_null(), g_autoptr(), TRUE, and user_data.
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsAddress | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsMultiline | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsTwitter | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputHintsWebSearch | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeEmail | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeName | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeNumber | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposePassword | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposePhone | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| InputPurposeUrl | |||
| ) |
| TEST_F | ( | FlTextInputHandlerTest | , |
| MessageHandler | |||
| ) |
Definition at line 172 of file fl_text_input_handler_test.cc.
| 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_value_equal(), fl_value_new_int(), g_autoptr(), 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_value_equal(), fl_value_new_int(), fl_value_new_string(), g_autoptr(), 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_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), 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_value_equal(), fl_value_new_int(), fl_value_new_string(), g_autoptr(), 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_value_equal(), fl_value_new_int(), g_autoptr(), 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_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(), height, TRUE, user_data, width, x, and y.
| TEST_F | ( | FlTextInputHandlerTest | , |
| SetMarkedTextRectWithoutWidget | |||
| ) |
Definition at line 685 of file fl_text_input_handler_test.cc.
References build_map(), fl_text_input_handler_get_im_context(), fl_value_new_float(), g_autoptr(), 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_value_equal(), fl_value_new_null(), g_autoptr(), 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_text_input_handler_get_im_context(), fl_value_equal(), fl_value_new_int(), g_autoptr(), 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_value_equal(), fl_value_new_int(), g_autoptr(), 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_value_equal(), fl_value_new_null(), g_autoptr(), 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_value_equal(), fl_value_new_bool(), fl_value_new_int(), fl_value_new_null(), fl_value_new_string(), g_autoptr(), send_key_event(), set_client(), set_editing_state(), TRUE, and user_data.