chromium/v8/test/cctest/wasm/test-wasm-serialization.cc

// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <stdlib.h>
#include <string.h>

#include "include/v8-wasm.h"
#include "src/api/api-inl.h"
#include "src/objects/objects-inl.h"
#include "src/snapshot/code-serializer.h"
#include "src/utils/version.h"
#include "src/wasm/module-decoder.h"
#include "src/wasm/wasm-engine.h"
#include "src/wasm/wasm-module-builder.h"
#include "src/wasm/wasm-module.h"
#include "src/wasm/wasm-objects-inl.h"
#include "src/wasm/wasm-opcodes.h"
#include "src/wasm/wasm-serialization.h"
#include "test/cctest/cctest.h"
#include "test/cctest/heap/heap-utils.h"
#include "test/common/wasm/flag-utils.h"
#include "test/common/wasm/test-signatures.h"
#include "test/common/wasm/wasm-macro-gen.h"
#include "test/common/wasm/wasm-module-runner.h"

namespace v8::internal::wasm {

// Approximate gtest TEST_F style, in case we adopt gtest.
class WasmSerializationTest {};

TEST(DeserializeValidModule) {}

TEST(DeserializeWithSourceUrl) {}

TEST(DeserializeMismatchingVersion) {}

TEST(DeserializeNoSerializedData) {}

TEST(DeserializeWireBytesAndSerializedDataInvalid) {}

bool False(v8::Local<v8::Context> context, v8::Local<v8::String> source) {}

TEST(BlockWasmCodeGenAtDeserialization) {}

UNINITIALIZED_TEST(CompiledWasmModulesTransfer) {}

TEST(TierDownAfterDeserialization) {}

TEST(SerializeLiftoffModuleFails) {}

TEST(SerializeTieringBudget) {}

TEST(DeserializeTieringBudgetPartlyMissing) {}

TEST(SerializationFailsOnChangedFlags) {}

TEST(SerializationFailsOnChangedFeatures) {}

TEST(DeserializeIndirectCallWithDifferentCanonicalId) {}

}  // namespace v8::internal::wasm