Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::MockSettings Class Reference

#include <mock_settings.h>

Public Member Functions

 MockSettings ()
 
 ~MockSettings ()
 
 operator FlSettings * ()
 
 MOCK_METHOD (FlClockFormat, fl_settings_get_clock_format,(FlSettings *settings))
 
 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 (gdouble, fl_settings_get_text_scaling_factor,(FlSettings *settings))
 

Detailed Description

Definition at line 16 of file mock_settings.h.

Constructor & Destructor Documentation

◆ MockSettings()

MockSettings::MockSettings ( )

Definition at line 68 of file mock_settings.cc.

69 : instance_(
70 FL_SETTINGS(g_object_new(fl_mock_settings_get_type(), nullptr))) {
71 FL_MOCK_SETTINGS(instance_)->mock = this;
72}

◆ ~MockSettings()

MockSettings::~MockSettings ( )

Definition at line 74 of file mock_settings.cc.

74 {
75 if (instance_ != nullptr) {
76 g_clear_object(&instance_);
77 }
78}

Member Function Documentation

◆ MOCK_METHOD() [1/5]

flutter::testing::MockSettings::MOCK_METHOD ( bool  ,
fl_settings_get_enable_animations  ,
(FlSettings *settings)   
)

◆ MOCK_METHOD() [2/5]

flutter::testing::MockSettings::MOCK_METHOD ( bool  ,
fl_settings_get_high_contrast  ,
(FlSettings *settings)   
)

◆ MOCK_METHOD() [3/5]

flutter::testing::MockSettings::MOCK_METHOD ( FlClockFormat  ,
fl_settings_get_clock_format  ,
(FlSettings *settings)   
)

◆ MOCK_METHOD() [4/5]

flutter::testing::MockSettings::MOCK_METHOD ( FlColorScheme  ,
fl_settings_get_color_scheme  ,
(FlSettings *settings)   
)

◆ MOCK_METHOD() [5/5]

flutter::testing::MockSettings::MOCK_METHOD ( gdouble  ,
fl_settings_get_text_scaling_factor  ,
(FlSettings *settings)   
)

◆ operator FlSettings *()

MockSettings::operator FlSettings * ( )

Definition at line 80 of file mock_settings.cc.

80 {
81 return instance_;
82}

The documentation for this class was generated from the following files: