5#ifndef FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_SIGNAL_HANDLER_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_SIGNAL_HANDLER_H_
8#include <glib-object.h>
11#include "gmock/gmock.h"
18#define EXPECT_SIGNAL(mock) EXPECT_CALL(mock, Handler())
25#define EXPECT_SIGNAL1(mock, a1) EXPECT_CALL(mock, Handler1(a1))
32#define EXPECT_SIGNAL2(mock, a1, a2) EXPECT_CALL(mock, Handler2(a1, a2))
44 gpointer instance_ =
nullptr;
73template <
typename A1,
typename A2>
83 mock->Handler2(a1, a2);
MockSignalHandler1(gpointer instance, const gchar *name)
MOCK_METHOD(void, Handler1,(A1 a1))
MockSignalHandler2(gpointer instance, const gchar *name)
MOCK_METHOD(void, Handler2,(A1 a1, A2 a2))
MOCK_METHOD(void, Handler,())
MockSignalHandler(gpointer instance, const gchar *name)
SignalHandler(gpointer instance, const gchar *name, GCallback callback)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
DEF_SWITCHES_START aot vmservice shared library name