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

#include <stub_flutter_api.h>

Public Member Functions

virtual ~StubFlutterApi ()
 
virtual void PluginRegistrarSetDestructionHandler (FlutterDesktopOnPluginRegistrarDestroyed callback)
 
virtual bool MessengerSend (const char *channel, const uint8_t *message, const size_t message_size)
 
virtual bool MessengerSendWithReply (const char *channel, const uint8_t *message, const size_t message_size, const FlutterDesktopBinaryReply reply, void *user_data)
 
virtual void MessengerSendResponse (const FlutterDesktopMessageResponseHandle *handle, const uint8_t *data, size_t data_length)
 
virtual void MessengerSetCallback (const char *channel, FlutterDesktopMessageCallback callback, void *user_data)
 
virtual int64_t TextureRegistrarRegisterExternalTexture (const FlutterDesktopTextureInfo *info)
 
virtual void TextureRegistrarUnregisterExternalTexture (int64_t texture_id, void(*callback)(void *user_data), void *user_data)
 
virtual bool TextureRegistrarMarkTextureFrameAvailable (int64_t texture_id)
 

Static Public Member Functions

static void SetTestStub (StubFlutterApi *stub)
 
static StubFlutterApiGetTestStub ()
 

Public Attributes

bool message_engine_result = true
 

Detailed Description

Definition at line 22 of file stub_flutter_api.h.

Constructor & Destructor Documentation

◆ ~StubFlutterApi()

virtual flutter::testing::StubFlutterApi::~StubFlutterApi ( )
inlinevirtual

Definition at line 35 of file stub_flutter_api.h.

35{}

Member Function Documentation

◆ GetTestStub()

StubFlutterApi * flutter::testing::StubFlutterApi::GetTestStub ( )
static

Definition at line 20 of file stub_flutter_api.cc.

20 {
22}
static flutter::testing::StubFlutterApi * s_stub_implementation

◆ MessengerSend()

virtual bool flutter::testing::StubFlutterApi::MessengerSend ( const char *  channel,
const uint8_t *  message,
const size_t  message_size 
)
inlinevirtual

Definition at line 42 of file stub_flutter_api.h.

◆ MessengerSendResponse()

virtual void flutter::testing::StubFlutterApi::MessengerSendResponse ( const FlutterDesktopMessageResponseHandle handle,
const uint8_t *  data,
size_t  data_length 
)
inlinevirtual

Definition at line 58 of file stub_flutter_api.h.

61 {}

◆ MessengerSendWithReply()

virtual bool flutter::testing::StubFlutterApi::MessengerSendWithReply ( const char *  channel,
const uint8_t *  message,
const size_t  message_size,
const FlutterDesktopBinaryReply  reply,
void *  user_data 
)
inlinevirtual

Definition at line 49 of file stub_flutter_api.h.

53 {
55 }

◆ MessengerSetCallback()

virtual void flutter::testing::StubFlutterApi::MessengerSetCallback ( const char *  channel,
FlutterDesktopMessageCallback  callback,
void *  user_data 
)
inlinevirtual

Definition at line 64 of file stub_flutter_api.h.

66 {}

◆ PluginRegistrarSetDestructionHandler()

virtual void flutter::testing::StubFlutterApi::PluginRegistrarSetDestructionHandler ( FlutterDesktopOnPluginRegistrarDestroyed  callback)
inlinevirtual

Definition at line 38 of file stub_flutter_api.h.

39 {}

◆ SetTestStub()

void flutter::testing::StubFlutterApi::SetTestStub ( StubFlutterApi stub)
static

Definition at line 15 of file stub_flutter_api.cc.

15 {
17}

◆ TextureRegistrarMarkTextureFrameAvailable()

virtual bool flutter::testing::StubFlutterApi::TextureRegistrarMarkTextureFrameAvailable ( int64_t  texture_id)
inlinevirtual

Definition at line 81 of file stub_flutter_api.h.

81 {
82 return false;
83 }

◆ TextureRegistrarRegisterExternalTexture()

virtual int64_t flutter::testing::StubFlutterApi::TextureRegistrarRegisterExternalTexture ( const FlutterDesktopTextureInfo info)
inlinevirtual

Definition at line 69 of file stub_flutter_api.h.

70 {
71 return -1;
72 }

◆ TextureRegistrarUnregisterExternalTexture()

virtual void flutter::testing::StubFlutterApi::TextureRegistrarUnregisterExternalTexture ( int64_t  texture_id,
void(*)(void *user_data callback,
void *  user_data 
)
inlinevirtual

Definition at line 75 of file stub_flutter_api.h.

78 {}

Member Data Documentation

◆ message_engine_result

bool flutter::testing::StubFlutterApi::message_engine_result = true

Definition at line 26 of file stub_flutter_api.h.


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