chromium/v8/test/fuzzer/wasm-streaming.cc

// Copyright 2022 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 <string>

#include "include/v8-isolate.h"
#include "src/api/api-inl.h"
#include "src/flags/flags.h"
#include "src/wasm/streaming-decoder.h"
#include "src/wasm/wasm-engine.h"
#include "src/wasm/wasm-objects-inl.h"
#include "test/fuzzer/fuzzer-support.h"
#include "test/fuzzer/wasm-fuzzer-common.h"

namespace v8::internal::wasm::fuzzing {

// Some properties of the compilation result to check. Extend if needed.
struct CompilationResult {};

class TestResolver : public CompilationResultResolver {};

CompilationResult CompileStreaming(v8_fuzzer::FuzzerSupport* support,
                                   WasmEnabledFeatures enabled_features,
                                   base::Vector<const uint8_t> data,
                                   uint8_t config) {}

CompilationResult CompileSync(Isolate* isolate,
                              WasmEnabledFeatures enabled_features,
                              base::Vector<const uint8_t> data) {}

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {}

}  // namespace v8::internal::wasm::fuzzing