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

#include <mock_signal_handler.h>

Inheritance diagram for flutter::testing::SignalHandler:
flutter::testing::MockSignalHandler flutter::testing::MockSignalHandler1< A1 > flutter::testing::MockSignalHandler2< A1, A2 >

Public Member Functions

 SignalHandler (gpointer instance, const gchar *name, GCallback callback)
 
virtual ~SignalHandler ()
 

Detailed Description

Definition at line 37 of file mock_signal_handler.h.

Constructor & Destructor Documentation

◆ SignalHandler()

flutter::testing::SignalHandler::SignalHandler ( gpointer  instance,
const gchar *  name,
GCallback  callback 
)

Definition at line 10 of file mock_signal_handler.cc.

13 : instance_(instance) {
14 id_ = g_signal_connect_data(instance, name, callback, this, nullptr,
15 G_CONNECT_SWAPPED);
16 g_object_add_weak_pointer(G_OBJECT(instance), &instance_);
17}
VkInstance instance
Definition: main.cc:48
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

◆ ~SignalHandler()

flutter::testing::SignalHandler::~SignalHandler ( )
virtual

Definition at line 19 of file mock_signal_handler.cc.

19 {
20 if (instance_) {
21 g_signal_handler_disconnect(instance_, id_);
22 g_object_remove_weak_pointer(G_OBJECT(instance_), &instance_);
23 }
24}

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