#include "flutter/shell/platform/linux/fl_gnome_settings.h"#include "flutter/shell/platform/linux/testing/fl_test.h"#include "flutter/shell/platform/linux/testing/mock_settings.h"#include "flutter/shell/platform/linux/testing/mock_signal_handler.h"#include "flutter/testing/testing.h"#include <gio/gio.h>#include <gio/gsettingsbackend.h>#include "gmock/gmock.h"#include "gtest/gtest.h"Go to the source code of this file.
Classes | |
| class | FlGnomeSettingsTest |
Macros | |
| #define | G_SETTINGS_ENABLE_BACKEND |
Functions | |
| static GSettings * | create_settings (const gchar *name, const gchar *schema_id) |
| TEST_F (FlGnomeSettingsTest, ClockFormat) | |
| TEST_F (FlGnomeSettingsTest, GtkTheme) | |
| TEST_F (FlGnomeSettingsTest, EnableAnimations) | |
| TEST_F (FlGnomeSettingsTest, HighContrast) | |
| TEST_F (FlGnomeSettingsTest, TextScalingFactor) | |
| TEST_F (FlGnomeSettingsTest, SignalHandlers) | |
| #define G_SETTINGS_ENABLE_BACKEND |
Definition at line 12 of file fl_gnome_settings_test.cc.
|
static |
Definition at line 26 of file fl_gnome_settings_test.cc.
References g_autoptr(), flutter::testing::GetFixturesPath(), and name.
| TEST_F | ( | FlGnomeSettingsTest | , |
| ClockFormat | |||
| ) |
Definition at line 38 of file fl_gnome_settings_test.cc.
References create_settings(), EXPECT_SIGNAL, FL_CLOCK_FORMAT_12H, FL_CLOCK_FORMAT_24H, fl_settings_get_clock_format(), and g_autoptr().
| TEST_F | ( | FlGnomeSettingsTest | , |
| EnableAnimations | |||
| ) |
Definition at line 72 of file fl_gnome_settings_test.cc.
References fl_gnome_settings_new(), fl_settings_get_enable_animations(), and g_autoptr().
| TEST_F | ( | FlGnomeSettingsTest | , |
| GtkTheme | |||
| ) |
Definition at line 55 of file fl_gnome_settings_test.cc.
References create_settings(), EXPECT_SIGNAL, FL_COLOR_SCHEME_DARK, FL_COLOR_SCHEME_LIGHT, fl_settings_get_color_scheme(), and g_autoptr().
| TEST_F | ( | FlGnomeSettingsTest | , |
| HighContrast | |||
| ) |
Definition at line 77 of file fl_gnome_settings_test.cc.
References fl_gnome_settings_new(), fl_settings_get_high_contrast(), and g_autoptr().
| TEST_F | ( | FlGnomeSettingsTest | , |
| SignalHandlers | |||
| ) |
Definition at line 99 of file fl_gnome_settings_test.cc.
References create_settings(), EXPECT_SIGNAL, and g_autoptr().
| TEST_F | ( | FlGnomeSettingsTest | , |
| TextScalingFactor | |||
| ) |
Definition at line 82 of file fl_gnome_settings_test.cc.
References create_settings(), EXPECT_SIGNAL, fl_settings_get_text_scaling_factor(), and g_autoptr().