#include <gtk/gtk.h>#include "flutter/shell/platform/linux/fl_binary_messenger_private.h"#include "flutter/shell/platform/linux/fl_platform_handler.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_codec.h"#include "flutter/shell/platform/linux/testing/fl_mock_binary_messenger.h"#include "flutter/shell/platform/linux/testing/fl_test.h"#include "gmock/gmock.h"#include "gtest/gtest.h"Go to the source code of this file.
Functions | |
| G_DECLARE_FINAL_TYPE (FlTestApplication, fl_test_application, FL, TEST_APPLICATION, GtkApplication) struct _FlTestApplication | |
| G_DEFINE_TYPE (FlTestApplication, fl_test_application, gtk_application_get_type()) static void fl_test_application_startup(GApplication *application) | |
| static void | fl_test_application_activate (GApplication *application) |
| static void | fl_test_application_dispose (GObject *object) |
| static void | fl_test_application_class_init (FlTestApplicationClass *klass) |
| static void | fl_test_application_init (FlTestApplication *self) |
| FlTestApplication * | fl_test_application_new (gboolean *dispose_called) |
| TEST (FlPlatformHandlerTest, PlaySound) | |
| TEST (FlPlatformHandlerTest, ExitApplication) | |
| TEST (FlPlatformHandlerTest, ExitApplicationDispose) | |
|
static |
Definition at line 40 of file fl_platform_handler_test.cc.
References args, fl_binary_messenger_shutdown(), fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_mock_binary_messenger_new(), fl_platform_handler_new(), fl_value_equal(), fl_value_new_map(), fl_value_new_string(), fl_value_set_string_take(), g_autoptr(), handler, TRUE, and user_data.
Referenced by fl_test_application_class_init().
|
static |
Definition at line 82 of file fl_platform_handler_test.cc.
References fl_test_application_activate(), and fl_test_application_dispose().
|
static |
Definition at line 74 of file fl_platform_handler_test.cc.
References self.
Referenced by fl_test_application_class_init().
|
static |
Definition at line 88 of file fl_platform_handler_test.cc.
| FlTestApplication * fl_test_application_new | ( | gboolean * | dispose_called | ) |
Definition at line 90 of file fl_platform_handler_test.cc.
References self.
Referenced by TEST().
| G_DECLARE_FINAL_TYPE | ( | FlTestApplication | , |
| fl_test_application | , | ||
| FL | , | ||
| TEST_APPLICATION | , | ||
| GtkApplication | |||
| ) |
Definition at line 16 of file fl_platform_handler_test.cc.
| G_DEFINE_TYPE | ( | FlTestApplication | , |
| fl_test_application | , | ||
| gtk_application_get_type() | |||
| ) |
Definition at line 27 of file fl_platform_handler_test.cc.
| TEST | ( | FlPlatformHandlerTest | , |
| ExitApplication | |||
| ) |
Definition at line 134 of file fl_platform_handler_test.cc.
References args, fl_binary_messenger_shutdown(), fl_method_success_response_get_result(), fl_method_success_response_new(), fl_mock_binary_messenger_invoke_json_method(), fl_mock_binary_messenger_new(), fl_mock_binary_messenger_set_json_method_channel(), fl_platform_handler_new(), fl_value_equal(), fl_value_new_map(), fl_value_new_null(), fl_value_new_string(), fl_value_set_string_take(), g_autoptr(), handler, name, TRUE, and user_data.
| TEST | ( | FlPlatformHandlerTest | , |
| ExitApplicationDispose | |||
| ) |
Definition at line 210 of file fl_platform_handler_test.cc.
References fl_test_application_new().
| TEST | ( | FlPlatformHandlerTest | , |
| PlaySound | |||
| ) |
Definition at line 106 of file fl_platform_handler_test.cc.
References args, fl_binary_messenger_shutdown(), fl_method_success_response_get_result(), fl_mock_binary_messenger_invoke_json_method(), fl_mock_binary_messenger_new(), fl_platform_handler_new(), fl_value_equal(), fl_value_new_null(), fl_value_new_string(), g_autoptr(), handler, TRUE, and user_data.