Flutter Engine
test_dart_native_resolver.h File Reference
#include <functional>
#include <map>
#include <memory>
#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

 flutter
 
 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; \
})()
std::function< void()> closure
Definition: closure.h:14
std::function< void(Dart_NativeArguments)> NativeEntry

Definition at line 15 of file test_dart_native_resolver.h.

Referenced by flutter::testing::TEST_F(), and flutter::testing::TestSimulatedInputEvents().