chromium/third_party/blink/renderer/modules/fuzzing/internals_fuzzing.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/modules/fuzzing/internals_fuzzing.h"

#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_arraybuffer_arraybufferview.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/platform/testing/renderer_fuzzing_support.h"

namespace blink {

static void ResolvePromise(ScriptPromiseResolver<IDLUndefined>* resolver) {}

// static
ScriptPromise<IDLUndefined> InternalsFuzzing::runFuzzer(
    ScriptState* script_state,
    Internals&,
    const String& fuzzer_id,
    V8BufferSource* fuzzer_data) {}

}  // namespace blink