chromium/third_party/pdfium/fpdfsdk/fpdf_dataavail_embeddertest.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 <algorithm>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/stl_util.h"
#include "public/fpdf_doc.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/range_set.h"
#include "testing/utils/file_util.h"
#include "testing/utils/path_service.h"

namespace {

class MockDownloadHints final : public FX_DOWNLOADHINTS {};

class TestAsyncLoader final : public FX_DOWNLOADHINTS, FX_FILEAVAIL {};

}  // namespace

class FPDFDataAvailEmbedderTest : public EmbedderTest {};

TEST_F(FPDFDataAvailEmbedderTest, TrailerUnterminated) {}

TEST_F(FPDFDataAvailEmbedderTest, TrailerAsHexstring) {}

TEST_F(FPDFDataAvailEmbedderTest, LoadUsingHintTables) {}

TEST_F(FPDFDataAvailEmbedderTest, CheckFormAvailIfLinearized) {}

TEST_F(FPDFDataAvailEmbedderTest,
       DoNotLoadMainCrossRefForFirstPageIfLinearized) {}

TEST_F(FPDFDataAvailEmbedderTest, LoadSecondPageIfLinearizedWithHints) {}

TEST_F(FPDFDataAvailEmbedderTest, LoadInfoAfterReceivingWholeDocument) {}

TEST_F(FPDFDataAvailEmbedderTest, LoadInfoAfterReceivingFirstPage) {}

TEST_F(FPDFDataAvailEmbedderTest, TryLoadInvalidInfo) {}

TEST_F(FPDFDataAvailEmbedderTest, TryLoadNonExistsInfo) {}

TEST_F(FPDFDataAvailEmbedderTest, BadInputsToAPIs) {}

TEST_F(FPDFDataAvailEmbedderTest, NegativePageIndex) {}

TEST_F(FPDFDataAvailEmbedderTest, Bug1324189) {}

TEST_F(FPDFDataAvailEmbedderTest, Bug1324503) {}