chromium/base/test/test_proto_loader.cc

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

#include "base/test/test_proto_loader.h"

#include "base/check.h"
#include "base/files/file_util.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "third_party/protobuf/src/google/protobuf/descriptor.h"
#include "third_party/protobuf/src/google/protobuf/descriptor.pb.h"
#include "third_party/protobuf/src/google/protobuf/descriptor_database.h"
#include "third_party/protobuf/src/google/protobuf/dynamic_message.h"
#include "third_party/protobuf/src/google/protobuf/message.h"
#include "third_party/protobuf/src/google/protobuf/text_format.h"

namespace base {

class TestProtoSetLoader::State {};

TestProtoSetLoader::TestProtoSetLoader(std::string_view descriptor_binary_proto)
    :{}

TestProtoSetLoader::TestProtoSetLoader(const base::FilePath& descriptor_path) {}

TestProtoSetLoader::~TestProtoSetLoader() = default;

std::string TestProtoSetLoader::ParseFromText(
    const std::string_view type_name,
    const std::string& proto_text) const {}

std::string TestProtoSetLoader::PrintToText(
    const std::string_view type_name,
    const std::string& serialized_message) const {}

TestProtoLoader::TestProtoLoader(std::string_view descriptor_binary_proto,
                                 std::string_view type_name)
    :{}

TestProtoLoader::TestProtoLoader(const base::FilePath& descriptor_path,
                                 std::string_view type_name)
    :{}

TestProtoLoader::~TestProtoLoader() = default;

void TestProtoLoader::ParseFromText(const std::string& proto_text,
                                    std::string& serialized_message) const {}

void TestProtoLoader::PrintToText(const std::string& serialized_message,
                                  std::string& proto_text) const {}

}  // namespace base