#include "gtest/gtest.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/shell/platform/linux/fl_accessible_text_field.h"
#include "flutter/shell/platform/linux/fl_engine_private.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_signal_handler.h"
Go to the source code of this file.
Functions | |
static FlValue * | decode_semantic_data (const uint8_t *data, size_t data_length) |
TEST (FlAccessibleTextFieldTest, SetValue) | |
TEST (FlAccessibleTextFieldTest, SetTextSelection) | |
TEST (FlAccessibleTextFieldTest, PerformAction) | |
TEST (FlAccessibleTextFieldTest, GetCharacterCount) | |
TEST (FlAccessibleTextFieldTest, GetText) | |
TEST (FlAccessibleTextFieldTest, GetCaretOffset) | |
TEST (FlAccessibleTextFieldTest, SetCaretOffset) | |
TEST (FlAccessibleTextFieldTest, GetNSelections) | |
TEST (FlAccessibleTextFieldTest, GetSelection) | |
TEST (FlAccessibleTextFieldTest, AddSelection) | |
TEST (FlAccessibleTextFieldTest, RemoveSelection) | |
TEST (FlAccessibleTextFieldTest, SetSelection) | |
TEST (FlAccessibleTextFieldTest, SetTextContents) | |
TEST (FlAccessibleTextFieldTest, InsertDeleteText) | |
TEST (FlAccessibleTextFieldTest, CopyCutPasteText) | |
TEST (FlAccessibleTextFieldTest, TextBoundary) | |
|
static |
Definition at line 18 of file fl_accessible_text_field_test.cc.
References fl_message_codec_decode_message(), and fl_standard_message_codec_new().
Referenced by TEST().
TEST | ( | FlAccessibleTextFieldTest | , |
AddSelection | |||
) |
Definition at line 295 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_node_set_text_selection(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_get_int(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, make_mock_engine(), and value.
TEST | ( | FlAccessibleTextFieldTest | , |
CopyCutPasteText | |||
) |
Definition at line 477 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_get_int(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, make_mock_engine(), and value.
TEST | ( | FlAccessibleTextFieldTest | , |
GetCaretOffset | |||
) |
Definition at line 210 of file fl_accessible_text_field_test.cc.
References fl_accessible_node_set_text_selection(), fl_accessible_text_field_new(), and make_mock_engine().
TEST | ( | FlAccessibleTextFieldTest | , |
GetCharacterCount | |||
) |
Definition at line 178 of file fl_accessible_text_field_test.cc.
References fl_accessible_node_set_value(), fl_accessible_text_field_new(), and make_mock_engine().
TEST | ( | FlAccessibleTextFieldTest | , |
GetNSelections | |||
) |
Definition at line 249 of file fl_accessible_text_field_test.cc.
References fl_accessible_node_set_text_selection(), fl_accessible_text_field_new(), and make_mock_engine().
TEST | ( | FlAccessibleTextFieldTest | , |
GetSelection | |||
) |
Definition at line 261 of file fl_accessible_text_field_test.cc.
References end, fl_accessible_node_set_text_selection(), fl_accessible_node_set_value(), fl_accessible_text_field_new(), make_mock_engine(), and start.
TEST | ( | FlAccessibleTextFieldTest | , |
GetText | |||
) |
Definition at line 190 of file fl_accessible_text_field_test.cc.
References fl_accessible_node_set_value(), fl_accessible_text_field_new(), and make_mock_engine().
TEST | ( | FlAccessibleTextFieldTest | , |
InsertDeleteText | |||
) |
Definition at line 428 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_node_set_value(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_get_int(), fl_value_get_string(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, FL_VALUE_TYPE_STRING, make_mock_engine(), and value.
TEST | ( | FlAccessibleTextFieldTest | , |
PerformAction | |||
) |
Definition at line 142 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_node_set_actions(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_equal(), fl_value_new_bool(), fl_value_unref(), i, and make_mock_engine().
TEST | ( | FlAccessibleTextFieldTest | , |
RemoveSelection | |||
) |
Definition at line 329 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_node_set_text_selection(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_get_int(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, make_mock_engine(), and value.
TEST | ( | FlAccessibleTextFieldTest | , |
SetCaretOffset | |||
) |
Definition at line 222 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_get_int(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, make_mock_engine(), and value.
TEST | ( | FlAccessibleTextFieldTest | , |
SetSelection | |||
) |
Definition at line 369 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_get_int(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, make_mock_engine(), and value.
TEST | ( | FlAccessibleTextFieldTest | , |
SetTextContents | |||
) |
Definition at line 405 of file fl_accessible_text_field_test.cc.
References decode_semantic_data(), fl_accessible_text_field_new(), fl_engine_get_embedder_api(), fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, make_mock_engine(), and value.
TEST | ( | FlAccessibleTextFieldTest | , |
SetTextSelection | |||
) |
Definition at line 83 of file fl_accessible_text_field_test.cc.
References fl_accessible_node_set_text_selection(), fl_accessible_text_field_new(), and make_mock_engine().
TEST | ( | FlAccessibleTextFieldTest | , |
SetValue | |||
) |
Definition at line 27 of file fl_accessible_text_field_test.cc.
References fl_accessible_node_set_value(), fl_accessible_text_field_new(), and make_mock_engine().
TEST | ( | FlAccessibleTextFieldTest | , |
TextBoundary | |||
) |
Definition at line 524 of file fl_accessible_text_field_test.cc.
References fl_accessible_node_set_value(), fl_accessible_text_field_new(), and make_mock_engine().