Flutter Engine
The Flutter Engine
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 = mock_impl; \
static auto non_capturing = [](auto... args) { return closure(args...); }; \
return non_capturing; \
})()
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
Dart_NativeFunction function
Definition: fuchsia.cc:51
std::function< void()> closure
Definition: closure.h:14

Definition at line 19 of file proc_table_replacement.h.