Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Typedefs
test_dart_native_resolver.h File Reference
#include <functional>
#include <map>
#include <memory>
#include <string>
#include "flutter/fml/macros.h"
#include "third_party/dart/runtime/include/dart_api.h"

Go to the source code of this file.

Classes

class  flutter::testing::TestDartNativeResolver
 

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Macros

#define CREATE_NATIVE_ENTRY(native_entry)
 

Typedefs

using flutter::testing::NativeEntry = std::function< void(Dart_NativeArguments)>
 

Macro Definition Documentation

◆ CREATE_NATIVE_ENTRY

#define CREATE_NATIVE_ENTRY (   native_entry)
Value:
([&]() { \
static Dart_NativeFunction entrypoint = [](Dart_NativeArguments args) { \
closure(args); \
}; \
closure = (native_entry); \
return entrypoint; \
})()
struct _Dart_NativeArguments * Dart_NativeArguments
Definition: dart_api.h:3019
void(* Dart_NativeFunction)(Dart_NativeArguments arguments)
Definition: dart_api.h:3207
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
std::function< void(Dart_NativeArguments)> NativeEntry
std::function< void()> closure
Definition: closure.h:14

Definition at line 16 of file test_dart_native_resolver.h.