Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
flutter::testing::MockSyncSwitch::Handlers Struct Reference

Public Member Functions

HandlersSetIfTrue (const std::function< void()> &handler)
 
HandlersSetIfFalse (const std::function< void()> &handler)
 

Public Attributes

std::function< void()> true_handler = [] {}
 
std::function< void()> false_handler = [] {}
 

Detailed Description

Definition at line 54 of file image_encoding_unittests.cc.

Member Function Documentation

◆ SetIfFalse()

Handlers & flutter::testing::MockSyncSwitch::Handlers::SetIfFalse ( const std::function< void()> &  handler)
inline

Definition at line 59 of file image_encoding_unittests.cc.

59 {
60 false_handler = handler;
61 return *this;
62 }

◆ SetIfTrue()

Handlers & flutter::testing::MockSyncSwitch::Handlers::SetIfTrue ( const std::function< void()> &  handler)
inline

Definition at line 55 of file image_encoding_unittests.cc.

55 {
56 true_handler = handler;
57 return *this;
58 }

Member Data Documentation

◆ false_handler

std::function<void()> flutter::testing::MockSyncSwitch::Handlers::false_handler = [] {}

Definition at line 64 of file image_encoding_unittests.cc.

◆ true_handler

std::function<void()> flutter::testing::MockSyncSwitch::Handlers::true_handler = [] {}

Definition at line 63 of file image_encoding_unittests.cc.


The documentation for this struct was generated from the following file: