chromium/third_party/pdfium/fpdfsdk/fpdf_doc_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 <array>
#include <set>
#include <string>
#include <vector>

#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxge/cfx_defaultrenderdevice.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "public/cpp/fpdf_scopers.h"
#include "public/fpdf_doc.h"
#include "public/fpdf_edit.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

// Look for "/Type/Page" but ignore "/Type/Pages".
int CountPageEntries(const std::string& data) {}

// Look for ">stream\r\n".
int CountStreamEntries(const std::string& data) {}

}  // namespace

class FPDFDocEmbedderTest : public EmbedderTest {};

TEST_F(FPDFDocEmbedderTest, MultipleSamePage) {}

TEST_F(FPDFDocEmbedderTest, DestGetPageIndex) {}

TEST_F(FPDFDocEmbedderTest, DestGetView) {}

TEST_F(FPDFDocEmbedderTest, DestGetLocationInPage) {}

TEST_F(FPDFDocEmbedderTest, Bug1506First) {}

TEST_F(FPDFDocEmbedderTest, Bug1506Second) {}

TEST_F(FPDFDocEmbedderTest, Bug1506Third) {}

TEST_F(FPDFDocEmbedderTest, Bug680376) {}

TEST_F(FPDFDocEmbedderTest, Bug821454) {}

TEST_F(FPDFDocEmbedderTest, ActionBadArguments) {}

TEST_F(FPDFDocEmbedderTest, ActionLaunch) {}

TEST_F(FPDFDocEmbedderTest, ActionUri) {}

TEST_F(FPDFDocEmbedderTest, ActionUriNonAscii) {}

TEST_F(FPDFDocEmbedderTest, LinkToAnnotConversion) {}

TEST_F(FPDFDocEmbedderTest, ActionGoto) {}

TEST_F(FPDFDocEmbedderTest, ActionEmbeddedGoto) {}

TEST_F(FPDFDocEmbedderTest, ActionNonesuch) {}

TEST_F(FPDFDocEmbedderTest, NoBookmarks) {}

TEST_F(FPDFDocEmbedderTest, Bookmarks) {}

TEST_F(FPDFDocEmbedderTest, FindBookmarks) {}

// Check circular bookmarks will not cause infinite loop.
TEST_F(FPDFDocEmbedderTest, FindBookmarksBug420) {}

TEST_F(FPDFDocEmbedderTest, DeletePage) {}

TEST_F(FPDFDocEmbedderTest, DeletePageAndRender) {}

TEST_F(FPDFDocEmbedderTest, DeletePageAndSaveWithBookmarks) {}

TEST_F(FPDFDocEmbedderTest, DeletePageAndSaveWithCustomObject) {}

TEST_F(FPDFDocEmbedderTest, DeletePageAndSaveWithCustomObjectForNewPage) {}

TEST_F(FPDFDocEmbedderTest, DeletePageAndSaveForPageWithMultipleUses) {}

TEST_F(FPDFDocEmbedderTest, GetFileIdentifier) {}

TEST_F(FPDFDocEmbedderTest, GetNonHexFileIdentifier) {}

TEST_F(FPDFDocEmbedderTest, GetNonexistentFileIdentifier) {}

TEST_F(FPDFDocEmbedderTest, GetMetaText) {}

TEST_F(FPDFDocEmbedderTest, Utf8Metadata) {}

TEST_F(FPDFDocEmbedderTest, Bug182) {}

TEST_F(FPDFDocEmbedderTest, GetMetaTextSameObjectNumber) {}

TEST_F(FPDFDocEmbedderTest, GetMetaTextInAttachmentFile) {}

TEST_F(FPDFDocEmbedderTest, GetMetaTextFromNewDocument) {}

TEST_F(FPDFDocEmbedderTest, GetPageAAction) {}

TEST_F(FPDFDocEmbedderTest, NoPageLabels) {}

TEST_F(FPDFDocEmbedderTest, GetPageLabels) {}

#ifdef PDF_ENABLE_XFA
TEST_F(FPDFDocEmbedderTest, GetXFALinks) {}
#endif  // PDF_ENABLE_XFA