chromium/third_party/crashpad/crashpad/minidump/test/minidump_string_writer_test_util.cc

// Copyright 2014 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "minidump/test/minidump_string_writer_test_util.h"

#include <sys/types.h>

#include "gtest/gtest.h"
#include "minidump/minidump_extensions.h"
#include "minidump/test/minidump_writable_test_util.h"

namespace crashpad {
namespace test {

namespace {

template <
    typename T,
    typename RVAType = RVA,
    typename MinidumpLocationDescriptorType = MINIDUMP_LOCATION_DESCRIPTOR>
const T* TMinidumpStringAtRVA(const std::string& file_contents, RVAType rva) {}

template <typename StringType,
          typename MinidumpStringType,
          typename RVAType,
          typename MinidumpLocationDescriptorType>
StringType TMinidumpStringAtRVAAsString(const std::string& file_contents,
                                        RVAType rva) {}

}  // namespace

const MINIDUMP_STRING* MinidumpStringAtRVA(const std::string& file_contents,
                                           RVA rva) {}

const MINIDUMP_STRING* MinidumpStringAtRVA(const std::string& file_contents,
                                           RVA64 rva) {}

const MinidumpUTF8String* MinidumpUTF8StringAtRVA(
    const std::string& file_contents,
    RVA rva) {}

const MinidumpUTF8String* MinidumpUTF8StringAtRVA(
    const std::string& file_contents,
    RVA64 rva) {}

std::u16string MinidumpStringAtRVAAsString(const std::string& file_contents,
                                           RVA rva) {}

std::u16string MinidumpStringAtRVAAsString(const std::string& file_contents,
                                           RVA64 rva) {}

std::string MinidumpUTF8StringAtRVAAsString(const std::string& file_contents,
                                            RVA rva) {}

std::string MinidumpUTF8StringAtRVAAsString(const std::string& file_contents,
                                            RVA64 rva) {}

}  // namespace test
}  // namespace crashpad