#include "test/wasm-api-tests/wasm-api-test.h"
namespace v8 {
namespace internal {
namespace wasm {
namespace {
int g_instances_finalized = …;
int g_functions_finalized = …;
int g_foreigns_finalized = …;
int g_modules_finalized = …;
const int kModuleMagic = …;
void FinalizeInstance(void* data) { … }
void FinalizeFunction(void* data) { … }
void FinalizeForeign(void* data) { … }
void FinalizeModule(void* data) { … }
void RunInStore(Store* store, base::Vector<const uint8_t> wire_bytes,
int iterations) { … }
}
TEST_F(WasmCapiTest, InstanceFinalization) { … }
namespace {
own<Trap> CapiFunction(void* env, const Val args[], Val results[]) { … }
int g_host_data_finalized = …;
int g_capi_function_finalized = …;
void FinalizeCapiFunction(void* data) { … }
void FinalizeHostData(void* data) { … }
}
TEST_F(WasmCapiTest, CapiFunctionLifetimes) { … }
}
}
}