Flutter Engine
The Flutter Engine
mock_settings.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_SETTINGS_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_SETTINGS_H_
7
8#include "flutter/shell/platform/linux/fl_settings.h"
9
10#include "gmock/gmock.h"
11
12namespace flutter {
13namespace testing {
14
15// Mock for FlSettings.
17 public:
20
21 // This was an existing use of operator overloading. It's against our style
22 // guide but enabling clang tidy on header files is a higher priority than
23 // fixing this.
24 // NOLINTNEXTLINE(google-explicit-constructor)
25 operator FlSettings*();
26
29 (FlSettings * settings));
30
33 (FlSettings * settings));
34
36
38
39 MOCK_METHOD(gdouble,
41 (FlSettings * settings));
42
43 private:
44 FlSettings* instance_ = nullptr;
45};
46
47} // namespace testing
48} // namespace flutter
49
50#endif // FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_SETTINGS_H_
MOCK_METHOD(FlColorScheme, fl_settings_get_color_scheme,(FlSettings *settings))
MOCK_METHOD(bool, fl_settings_get_enable_animations,(FlSettings *settings))
MOCK_METHOD(bool, fl_settings_get_high_contrast,(FlSettings *settings))
MOCK_METHOD(FlClockFormat, fl_settings_get_clock_format,(FlSettings *settings))
MOCK_METHOD(gdouble, fl_settings_get_text_scaling_factor,(FlSettings *settings))
gboolean fl_settings_get_high_contrast(FlSettings *self)
Definition: fl_settings.cc:42
gdouble fl_settings_get_text_scaling_factor(FlSettings *self)
Definition: fl_settings.cc:46
gboolean fl_settings_get_enable_animations(FlSettings *self)
Definition: fl_settings.cc:38
FlColorScheme fl_settings_get_color_scheme(FlSettings *self)
Definition: fl_settings.cc:34
FlClockFormat fl_settings_get_clock_format(FlSettings *self)
Definition: fl_settings.cc:30
FlColorScheme
Definition: fl_settings.h:35
FlClockFormat
Definition: fl_settings.h:21