chromium/v8/test/unittests/api/api-wasm-unittest.cc

// Copyright 2019 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 <memory>

#include "include/v8-context.h"
#include "include/v8-function-callback.h"
#include "include/v8-local-handle.h"
#include "include/v8-object.h"
#include "include/v8-persistent-handle.h"
#include "include/v8-promise.h"
#include "include/v8-wasm.h"
#include "src/api/api-inl.h"
#include "src/handles/global-handles.h"
#include "src/wasm/wasm-features.h"
#include "src/wasm/wasm-js.h"
#include "test/common/flag-utils.h"
#include "test/unittests/heap/heap-utils.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace v8 {

bool wasm_streaming_callback_got_called =;
bool wasm_streaming_data_got_collected =;

// The bytes of a minimal WebAssembly module.
const uint8_t kMinimalWasmModuleBytes[]{};

class ApiWasmTest : public TestWithIsolate {};

void WasmStreamingTestFinalizer(const WeakCallbackInfo<void>& data) {}

void WasmStreamingCallbackTestCallbackIsCalled(
    const FunctionCallbackInfo<Value>& info) {}

void WasmStreamingCallbackTestFinishWithSuccess(
    const FunctionCallbackInfo<Value>& info) {}

void WasmStreamingCallbackTestFinishWithFailure(
    const FunctionCallbackInfo<Value>& info) {}

void WasmStreamingCallbackTestAbortWithReject(
    const FunctionCallbackInfo<Value>& info) {}

void WasmStreamingCallbackTestAbortNoReject(
    const FunctionCallbackInfo<Value>& info) {}

void WasmStreamingCallbackTestOnBytesReceived(
    const FunctionCallbackInfo<Value>& info) {}

void WasmStreamingMoreFunctionsCanBeSerializedCallback(
    const FunctionCallbackInfo<Value>& info) {}

TEST_F(ApiWasmTest, WasmStreamingCallback) {}

TEST_F(ApiWasmTest, WasmStreamingOnBytesReceived) {}

TEST_F(ApiWasmTest, WasmStreamingFinishWithSuccess) {}

TEST_F(ApiWasmTest, WasmStreamingFinishWithFailure) {}

TEST_F(ApiWasmTest, WasmStreamingAbortWithReject) {}

TEST_F(ApiWasmTest, WasmStreamingAbortWithoutReject) {}

TEST_F(ApiWasmTest, WasmCompileToWasmModuleObject) {}

TEST_F(ApiWasmTest, WasmStreamingSetCallback) {}

TEST_F(ApiWasmTest, WasmErrorIsSharedCrossOrigin) {}

TEST_F(ApiWasmTest, WasmEnableDisableImportedStrings) {}

TEST_F(ApiWasmTest, WasmEnableDisableJSPI) {}

TEST_F(ApiWasmTest, WasmInstallJSPI) {}

}  // namespace v8