5#include "flutter/shell/platform/embedder/embedder.h"
9#include "flutter/testing/testing.h"
20TEST(EmbedderProcTable, AllPointersProvided) {
25 void (**proc)() =
reinterpret_cast<void (**)()
>(&procs.
CreateAOTData);
26 const uintptr_t end_address =
27 reinterpret_cast<uintptr_t
>(&procs) + procs.
struct_size;
28 while (
reinterpret_cast<uintptr_t
>(proc) < end_address) {
29 EXPECT_NE(*proc,
nullptr);
36TEST(EmbedderProcTable, NoDuplicatePointers) {
41 void (**proc)() =
reinterpret_cast<void (**)()
>(&procs.
CreateAOTData);
42 const uintptr_t end_address =
43 reinterpret_cast<uintptr_t
>(&procs) + procs.
struct_size;
45 while (
reinterpret_cast<uintptr_t
>(proc) < end_address) {
46 auto result = seen_procs.insert(*proc);
53TEST(EmbedderProcTable, CallProc) {
FlutterEngineResult FlutterEngineGetProcAddresses(FlutterEngineProcTable *table)
Gets the table of engine function pointers.
TEST(DisplayListComplexity, EmptyDisplayList)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
Function-pointer-based versions of the APIs above.
FlutterEngineCreateAOTDataFnPtr CreateAOTData
size_t struct_size
The size of this struct. Must be sizeof(FlutterEngineProcs).
FlutterEngineGetCurrentTimeFnPtr GetCurrentTime
#define EXPECT_TRUE(handle)