#include "flutter/shell/platform/linux/fl_mouse_cursor_handler.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_response.h"#include "flutter/shell/platform/linux/testing/fl_mock_binary_messenger.h"#include "gtest/gtest.h"Go to the source code of this file.
Functions | |
| static gboolean | activate_system_cursor (FlMockBinaryMessenger *messenger, const gchar *kind) |
| TEST (FlMouseCursorHandlerTest, InitialCursorName) | |
| TEST (FlMouseCursorHandlerTest, ActivateSystemCursor) | |
| TEST (FlMouseCursorHandlerTest, BasicCursor) | |
| TEST (FlMouseCursorHandlerTest, UnknownCursorFallsBackToDefault) | |
| TEST (FlMouseCursorHandlerTest, MissingKindFallsBackToDefault) | |
| TEST (FlMouseCursorHandlerTest, CursorChangedSignal) | |
| TEST (FlMouseCursorHandlerTest, BadArguments) | |
| TEST (FlMouseCursorHandlerTest, UnknownMethod) | |
|
static |
Definition at line 14 of file fl_mouse_cursor_handler_test.cc.
References args, fl_mock_binary_messenger_invoke_standard_method(), fl_value_new_map(), fl_value_new_string(), fl_value_set_string_take(), g_autoptr(), TRUE, and user_data.
| TEST | ( | FlMouseCursorHandlerTest | , |
| ActivateSystemCursor | |||
| ) |
Definition at line 44 of file fl_mouse_cursor_handler_test.cc.
References activate_system_cursor(), fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_get_cursor_name(), fl_mouse_cursor_handler_new(), g_autoptr(), and handler.
| TEST | ( | FlMouseCursorHandlerTest | , |
| BadArguments | |||
| ) |
Definition at line 119 of file fl_mouse_cursor_handler_test.cc.
References args, fl_method_error_response_get_code(), fl_mock_binary_messenger_invoke_standard_method(), fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_get_cursor_name(), fl_mouse_cursor_handler_new(), fl_value_new_null(), g_autoptr(), handler, TRUE, and user_data.
| TEST | ( | FlMouseCursorHandlerTest | , |
| BasicCursor | |||
| ) |
Definition at line 55 of file fl_mouse_cursor_handler_test.cc.
References activate_system_cursor(), fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_get_cursor_name(), fl_mouse_cursor_handler_new(), g_autoptr(), and handler.
| TEST | ( | FlMouseCursorHandlerTest | , |
| CursorChangedSignal | |||
| ) |
Definition at line 101 of file fl_mouse_cursor_handler_test.cc.
References activate_system_cursor(), fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_get_cursor_name(), fl_mouse_cursor_handler_new(), g_autoptr(), handler, and TRUE.
| TEST | ( | FlMouseCursorHandlerTest | , |
| InitialCursorName | |||
| ) |
Definition at line 35 of file fl_mouse_cursor_handler_test.cc.
References fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_get_cursor_name(), fl_mouse_cursor_handler_new(), g_autoptr(), and handler.
| TEST | ( | FlMouseCursorHandlerTest | , |
| MissingKindFallsBackToDefault | |||
| ) |
Definition at line 78 of file fl_mouse_cursor_handler_test.cc.
References args, fl_mock_binary_messenger_invoke_standard_method(), fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_get_cursor_name(), fl_mouse_cursor_handler_new(), fl_value_new_map(), g_autoptr(), handler, TRUE, and user_data.
| TEST | ( | FlMouseCursorHandlerTest | , |
| UnknownCursorFallsBackToDefault | |||
| ) |
Definition at line 66 of file fl_mouse_cursor_handler_test.cc.
References activate_system_cursor(), fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_get_cursor_name(), fl_mouse_cursor_handler_new(), g_autoptr(), and handler.
| TEST | ( | FlMouseCursorHandlerTest | , |
| UnknownMethod | |||
| ) |
Definition at line 146 of file fl_mouse_cursor_handler_test.cc.
References args, fl_mock_binary_messenger_invoke_standard_method(), fl_mock_binary_messenger_new(), fl_mouse_cursor_handler_new(), fl_value_new_null(), g_autoptr(), handler, TRUE, and user_data.