#include "flutter/shell/platform/linux/fl_settings_handler.h"
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_message_codec.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_value.h"
#include "flutter/shell/platform/linux/testing/fl_test.h"
#include "flutter/shell/platform/linux/testing/mock_binary_messenger.h"
#include "flutter/shell/platform/linux/testing/mock_settings.h"
#include "flutter/testing/testing.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
Go to the source code of this file.
Macros | |
#define | EXPECT_SETTING(messenger, key, value) |
Functions | |
MATCHER_P2 (HasSetting, key, value, "") | |
TEST (FlSettingsHandlerTest, AlwaysUse24HourFormat) | |
TEST (FlSettingsHandlerTest, PlatformBrightness) | |
TEST (FlSettingsHandlerTest, TextScaleFactor) | |
TEST (FlSettingsHandlerTest, AccessibilityFeatures) | |
#define EXPECT_SETTING | ( | messenger, | |
key, | |||
value | |||
) |
Definition at line 31 of file fl_settings_handler_test.cc.
MATCHER_P2 | ( | HasSetting | , |
key | , | ||
value | , | ||
"" | |||
) |
Definition at line 20 of file fl_settings_handler_test.cc.
References fl_json_message_codec_new(), fl_message_codec_decode_message(), fl_value_equal(), fl_value_lookup_string(), and value.
TEST | ( | FlSettingsHandlerTest | , |
AccessibilityFeatures | |||
) |
Definition at line 120 of file fl_settings_handler_test.cc.
References fl_engine_get_embedder_api(), fl_settings_emit_changed(), fl_settings_get_enable_animations(), fl_settings_get_high_contrast(), fl_settings_handler_new(), fl_settings_handler_start(), and make_mock_engine().
TEST | ( | FlSettingsHandlerTest | , |
AlwaysUse24HourFormat | |||
) |
Definition at line 40 of file fl_settings_handler_test.cc.
References EXPECT_SETTING, FL_CLOCK_FORMAT_12H, FL_CLOCK_FORMAT_24H, fl_settings_emit_changed(), fl_settings_get_clock_format(), fl_settings_handler_new(), fl_settings_handler_start(), and fl_value_new_bool().
TEST | ( | FlSettingsHandlerTest | , |
PlatformBrightness | |||
) |
Definition at line 66 of file fl_settings_handler_test.cc.
References EXPECT_SETTING, FL_COLOR_SCHEME_DARK, FL_COLOR_SCHEME_LIGHT, fl_settings_emit_changed(), fl_settings_get_color_scheme(), fl_settings_handler_new(), fl_settings_handler_start(), and fl_value_new_string().
TEST | ( | FlSettingsHandlerTest | , |
TextScaleFactor | |||
) |
Definition at line 92 of file fl_settings_handler_test.cc.
References EXPECT_SETTING, fl_settings_emit_changed(), fl_settings_get_text_scaling_factor(), fl_settings_handler_new(), fl_settings_handler_start(), and fl_value_new_float().