Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::TestDelegate Class Reference
Inheritance diagram for flutter::testing::TestDelegate:
flutter::PointerDataPacketConverter::Delegate

Public Member Functions

bool ViewExists (int64_t view_id) const override
 
void AddView (int64_t view_id)
 
void RemoveView (int64_t view_id)
 
- Public Member Functions inherited from flutter::PointerDataPacketConverter::Delegate
 Delegate ()=default
 
virtual ~Delegate ()=default
 
virtual bool ViewExists (int64_t view_id) const =0
 

Detailed Description

Definition at line 21 of file pointer_data_packet_converter_unittests.cc.

Member Function Documentation

◆ AddView()

void flutter::testing::TestDelegate::AddView ( int64_t  view_id)
inline

Definition at line 28 of file pointer_data_packet_converter_unittests.cc.

28{ views_.insert(view_id); }

◆ RemoveView()

void flutter::testing::TestDelegate::RemoveView ( int64_t  view_id)
inline

Definition at line 30 of file pointer_data_packet_converter_unittests.cc.

30{ views_.erase(view_id); }

◆ ViewExists()

bool flutter::testing::TestDelegate::ViewExists ( int64_t  view_id) const
inlineoverridevirtual

Implements flutter::PointerDataPacketConverter::Delegate.

Definition at line 24 of file pointer_data_packet_converter_unittests.cc.

24 {
25 return views_.count(view_id) != 0;
26 }

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