Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Macros
proc_table_replacement.h File Reference
#include "flutter/shell/platform/embedder/embedder.h"

Go to the source code of this file.

Macros

#define MOCK_ENGINE_PROC(proc, mock_impl)
 

Macro Definition Documentation

◆ MOCK_ENGINE_PROC

#define MOCK_ENGINE_PROC (   proc,
  mock_impl 
)
Value:
([&]() { \
static std::function< \
std::remove_pointer_t<decltype(FlutterEngineProcTable::proc)>> \
closure; \
closure = mock_impl; \
static auto non_capturing = [](auto... args) { return closure(args...); }; \
return non_capturing; \
})()
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

Definition at line 19 of file proc_table_replacement.h.

20 { \
21 static std::function< \
22 std::remove_pointer_t<decltype(FlutterEngineProcTable::proc)>> \
23 closure; \
24 closure = mock_impl; \
25 static auto non_capturing = [](auto... args) { return closure(args...); }; \
26 return non_capturing; \
27 })()
std::function< void()> closure
Definition closure.h:14