100 {
103 DartNativeEntryResolverCallback,
106 << "Could not set native resolver in test.";
107
110 << "Could not set FFI native resolver in test.";
111
114
115 std::vector<Dart_Isolate> isolates_with_dead_resolvers;
117 if (!entry.second.lock()) {
118 isolates_with_dead_resolvers.push_back(entry.first);
119 }
120 }
121
122 for (const auto& dead_isolate : isolates_with_dead_resolvers) {
124 }
125}
DART_EXPORT Dart_Handle Dart_SetFfiNativeResolver(Dart_Handle library, Dart_FfiNativeResolver resolver)
DART_EXPORT Dart_Handle Dart_SetNativeResolver(Dart_Handle library, Dart_NativeEntryResolver resolver, Dart_NativeEntrySymbol symbol)
DART_EXPORT Dart_Isolate Dart_CurrentIsolate(void)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_RootLibrary(void)
#define FML_CHECK(condition)
static std::mutex gIsolateResolversMutex
static std::map< Dart_Isolate, std::weak_ptr< TestDartNativeResolver > > gIsolateResolvers
static const uint8_t * DartNativeEntrySymbolCallback(Dart_NativeFunction function)
bool CheckAndHandleError(Dart_Handle handle)