Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
_FlutterTaskRunner Struct Reference

Public Member Functions

 _FlutterTaskRunner (uint64_t task, const std::string &channel, const FlutterPlatformMessageResponseHandle *response_handle, const uint8_t *message, size_t message_size)
 
 ~_FlutterTaskRunner ()
 

Public Attributes

uint64_t task
 
std::string channel
 
const FlutterPlatformMessageResponseHandleresponse_handle
 
uint8_t * message
 
size_t message_size
 

Detailed Description

Definition at line 64 of file mock_engine.cc.

Constructor & Destructor Documentation

◆ _FlutterTaskRunner()

_FlutterTaskRunner::_FlutterTaskRunner ( uint64_t  task,
const std::string &  channel,
const FlutterPlatformMessageResponseHandle response_handle,
const uint8_t *  message,
size_t  message_size 
)
inline

Definition at line 71 of file mock_engine.cc.

77 : task(task),
81 if (message_size > 0) {
82 this->message = static_cast<uint8_t*>(malloc(message_size));
83 memcpy(this->message, message, message_size);
84 } else {
85 this->message = nullptr;
86 }
87 }
void * malloc(size_t size)
Definition: allocation.cc:19
std::string channel
Definition: mock_engine.cc:66
const FlutterPlatformMessageResponseHandle * response_handle
Definition: mock_engine.cc:67

◆ ~_FlutterTaskRunner()

_FlutterTaskRunner::~_FlutterTaskRunner ( )
inline

Definition at line 88 of file mock_engine.cc.

88 {
89 if (response_handle != nullptr) {
91 delete response_handle;
92 }
93 free(message);
94 }
#define EXPECT_TRUE(handle)
Definition: unit_test.h:678

Member Data Documentation

◆ channel

std::string _FlutterTaskRunner::channel

Definition at line 66 of file mock_engine.cc.

◆ message

uint8_t* _FlutterTaskRunner::message

Definition at line 68 of file mock_engine.cc.

◆ message_size

size_t _FlutterTaskRunner::message_size

Definition at line 69 of file mock_engine.cc.

◆ response_handle

const FlutterPlatformMessageResponseHandle* _FlutterTaskRunner::response_handle

Definition at line 67 of file mock_engine.cc.

◆ task

uint64_t _FlutterTaskRunner::task

Definition at line 65 of file mock_engine.cc.


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