25 {
26 auto settings = CreateSettingsForFixture();
27
33 );
34
35 auto message_latch = std::make_shared<fml::AutoResetWaitableEvent>();
36
37 std::unique_ptr<Shell>
shell = CreateShell(settings, task_runners);
38 ASSERT_TRUE(
shell->IsSetup());
39
43
46
49
52
53 int64_t arg_count;
55
56 std::vector<Dart_Handle> hook_args;
57 for (int i = 0; i < static_cast<int>(arg_count); i++) {
60 }
61
65 };
66
68 message_latch->Signal();
69 };
72
73 auto configuration = RunConfiguration::InferFromSettings(settings);
74 configuration.SetEntrypoint("hooksTests");
75
76 shell->RunEngine(std::move(configuration), [](
auto result) {
77 ASSERT_EQ(
result, Engine::RunStatus::Success);
78 });
79
80 message_latch->Wait();
81 DestroyShell(std::move(shell), task_runners);
82}
83
84}
85}
86
87
DART_EXPORT Dart_Handle Dart_IntegerToInt64(Dart_Handle integer, int64_t *value)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, int index)
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_InvokeClosure(Dart_Handle closure, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url)
struct _Dart_NativeArguments * Dart_NativeArguments
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_GetField(Dart_Handle container, Dart_Handle name)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define CHECK_DART_ERROR(name)
fml::RefPtr< fml::TaskRunner > CreateNewThread(const std::string &name)
fml::RefPtr< fml::TaskRunner > GetCurrentTaskRunner()
std::string GetCurrentTestName()
Gets the name of the currently running test. This is useful in generating logs or assets based on tes...
Dart_Handle ToDart(const T &object)
#define CREATE_NATIVE_ENTRY(native_entry)