chromium/third_party/pdfium/core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp

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

#include "core/fpdfapi/parser/fpdf_parser_decode.h"

#include <stddef.h>
#include <stdint.h>

#include <iterator>

#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_indirect_object_holder.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fxcodec/data_and_bytes_consumed.h"
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/span.h"
#include "core/fxcrt/string_view_template.h"
#include "core/fxcrt/widestring.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/test_support.h"

ElementsAreArray;

namespace {

// Converts a string literal into a `uint8_t` span.
template <size_t N>
pdfium::span<const uint8_t> ToSpan(const char (&array)[N]) {}

// Converts a string literal into a `ByteString`.
template <size_t N>
ByteString ToByteString(const char (&array)[N]) {}

}  // namespace

TEST(ParserDecodeTest, ValidateDecoderPipeline) {}

TEST(ParserDecodeTest, ValidateDecoderPipelineWithIndirectObjects) {}

// TODO(thestig): Test decoder params.
TEST(ParserDecodeTest, GetDecoderArray) {}

TEST(ParserDecodeTest, A85Decode) {}

TEST(ParserDecodeTest, HexDecode) {}

TEST(ParserDecodeTest, DecodeText) {}

// https://crbug.com/pdfium/182
TEST(ParserDecodeTest, DecodeTextWithUnicodeEscapes) {}

// https://crbug.com/1001159
TEST(ParserDecodeTest, DecodeTextWithInvalidUnicodeEscapes) {}

TEST(ParserDecodeTest, DecodeTextWithUnpairedSurrogates) {}

TEST(ParserDecodeTest, EncodeText) {}

TEST(ParserDecodeTest, RoundTripText) {}