5#include "flutter/shell/platform/linux/testing/mock_settings.h"
15struct _FlMockSettings {
16 GObject parent_instance;
22#define FL_UNUSED(x) (void)x;
27 G_IMPLEMENT_INTERFACE(fl_settings_get_type(),
31static void fl_mock_settings_class_init(FlMockSettingsClass* klass) {}
35 return self->mock->fl_settings_get_clock_format(
settings);
40 return self->mock->fl_settings_get_color_scheme(
settings);
45 return self->mock->fl_settings_get_enable_animations(
settings);
50 return self->mock->fl_settings_get_high_contrast(
settings);
55 return self->mock->fl_settings_get_text_scaling_factor(
settings);
68MockSettings::MockSettings()
70 FL_SETTINGS(g_object_new(fl_mock_settings_get_type(), nullptr))) {
71 FL_MOCK_SETTINGS(instance_)->mock =
this;
75 if (instance_ !=
nullptr) {
76 g_clear_object(&instance_);
80MockSettings::operator FlSettings*() {
static FlColorScheme fl_mock_settings_get_color_scheme(FlSettings *settings)
static FlClockFormat fl_mock_settings_get_clock_format(FlSettings *settings)
static void fl_mock_settings_iface_init(FlSettingsInterface *iface)
static gdouble fl_mock_settings_get_text_scaling_factor(FlSettings *settings)
static gboolean fl_mock_settings_get_high_contrast(FlSettings *settings)
G_DEFINE_TYPE_WITH_CODE(FlMockSettings, fl_mock_settings, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_settings_get_type(), fl_mock_settings_iface_init) FL_UNUSED(FL_IS_MOCK_SETTINGS)) static void fl_mock_settings_class_init(FlMockSettingsClass *klass)
G_DECLARE_FINAL_TYPE(FlMockSettings, fl_mock_settings, FL, MOCK_SETTINGS, GObject) struct _FlMockSettings
static gboolean fl_mock_settings_get_enable_animations(FlSettings *settings)
static void fl_mock_settings_init(FlMockSettings *self)