chromium/mojo/public/tools/fuzzers/mojolpm.cc

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

#include "mojo/public/tools/fuzzers/mojolpm.h"

#include "base/containers/span.h"
#include "base/no_destructor.h"
#include "mojo/public/c/system/data_pipe.h"
#include "mojo/public/cpp/system/data_pipe.h"

namespace mojolpm {

const uint32_t kPipeElementMaxSize =;
const uint32_t kPipeCapacityMaxSize =;
const uint32_t kPipeActionMaxSize =;

const uint64_t kSharedBufferMaxSize =;
const uint32_t kSharedBufferActionMaxSize =;

Context::Context() = default;

Context::~Context() = default;

Context::Storage::Storage() = default;

Context::Storage::~Storage() = default;

void Context::StartTestcase() {}

void Context::EndTestcase() {}

void Context::StartDeserialization() {}

void Context::EndDeserialization(Rollback rollback) {}

void Context::RemoveInstance(TypeId type_id, uint32_t id) {}

Context* GetContext() {}

bool FromProto(const bool& input, bool& output) {}

bool ToProto(const bool& input, bool& output) {}

bool FromProto(const ::google::protobuf::int32& input, int8_t& output) {}

bool ToProto(const int8_t& input, ::google::protobuf::int32& output) {}

bool FromProto(const ::google::protobuf::int32& input, int16_t& output) {}

bool ToProto(const int16_t& input, ::google::protobuf::int32& output) {}

bool FromProto(const ::google::protobuf::int32& input, int32_t& output) {}

bool ToProto(const int32_t& input, ::google::protobuf::int32& output) {}

bool FromProto(const ::google::protobuf::int64& input, int64_t& output) {}

bool ToProto(const int64_t& input, ::google::protobuf::int64& output) {}

bool FromProto(const ::google::protobuf::uint32& input, uint8_t& output) {}

bool ToProto(const uint8_t& input, ::google::protobuf::uint32& output) {}

bool FromProto(const ::google::protobuf::uint32& input, uint16_t& output) {}

bool ToProto(const uint16_t& input, ::google::protobuf::uint32& output) {}

bool FromProto(const ::google::protobuf::uint32& input, uint32_t& output) {}

bool ToProto(const uint32_t& input, ::google::protobuf::uint32& output) {}

bool FromProto(const ::google::protobuf::uint64& input, uint64_t& output) {}

bool ToProto(const uint64_t& input, ::google::protobuf::uint64& output) {}

bool FromProto(const double& input, double& output) {}

bool ToProto(const double& input, double& output) {}

bool FromProto(const float& input, float& output) {}

bool ToProto(const float& input, float& output) {}

bool FromProto(const std::string& input, std::string& output) {}

bool ToProto(const std::string& input, std::string& output) {}

bool FromProto(const ::mojolpm::Handle& input, mojo::ScopedHandle& output) {}

bool ToProto(const mojo::ScopedHandle& input, ::mojolpm::Handle& output) {}

bool FromProto(const ::mojolpm::DataPipeConsumerHandle& input,
               mojo::ScopedDataPipeConsumerHandle& output) {}

bool ToProto(const mojo::ScopedDataPipeConsumerHandle& input,
             ::mojolpm::DataPipeConsumerHandle& output) {}

bool FromProto(const ::mojolpm::DataPipeProducerHandle& input,
               mojo::ScopedDataPipeProducerHandle& output) {}

bool ToProto(const mojo::ScopedDataPipeProducerHandle& input,
             ::mojolpm::DataPipeProducerHandle& output) {}

bool FromProto(const ::mojolpm::MessagePipeHandle& input,
               mojo::ScopedMessagePipeHandle& output) {}

bool ToProto(const mojo::ScopedMessagePipeHandle& input,
             ::mojolpm::MessagePipeHandle& output) {}

bool FromProto(const ::mojolpm::SharedBufferHandle& input,
               mojo::ScopedSharedBufferHandle& output) {}

bool ToProto(const mojo::ScopedSharedBufferHandle& input,
             ::mojolpm::SharedBufferHandle& output) {}

bool FromProto(const ::mojolpm::PlatformHandle& input,
               mojo::PlatformHandle& output) {}

bool ToProto(const mojo::PlatformHandle& input,
             ::mojolpm::PlatformHandle& output) {}

void HandleDataPipeRead(const ::mojolpm::DataPipeRead& input) {}

void HandleDataPipeWrite(const ::mojolpm::DataPipeWrite& input) {}

void HandleSharedBufferWrite(const ::mojolpm::SharedBufferWrite& input) {}

void HandleDataPipeConsumerClose(
    const ::mojolpm::DataPipeConsumerClose& input) {}

void HandleDataPipeProducerClose(
    const ::mojolpm::DataPipeProducerClose& input) {}

void HandleSharedBufferRelease(const ::mojolpm::SharedBufferRelease& input) {}
}  // namespace mojolpm