chromium/third_party/pdfium/fpdfsdk/fpdf_ppo_embeddertest.cpp

// Copyright 2016 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 <iterator>
#include <memory>
#include <string>
#include <vector>

#include "core/fpdfapi/page/cpdf_form.h"
#include "core/fpdfapi/page/cpdf_formobject.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fxge/cfx_defaultrenderdevice.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "public/cpp/fpdf_scopers.h"
#include "public/fpdf_edit.h"
#include "public/fpdf_ppo.h"
#include "public/fpdf_save.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/embedder_test_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/utils/file_util.h"
#include "testing/utils/path_service.h"

namespace {

class FPDFPPOEmbedderTest : public EmbedderTest {};

int FakeBlockWriter(FPDF_FILEWRITE* pThis,
                    const void* pData,
                    unsigned long size) {}

constexpr int kRectanglesMultiPagesPageCount =;

const char* RectanglesMultiPagesExpectedChecksum(int page_index) {}

const char* Bug750568PageHash(int page_index) {}

}  // namespace

TEST_F(FPDFPPOEmbedderTest, NoViewerPreferences) {}

TEST_F(FPDFPPOEmbedderTest, ViewerPreferences) {}

TEST_F(FPDFPPOEmbedderTest, ImportPagesByIndex) {}

TEST_F(FPDFPPOEmbedderTest, ImportPages) {}

TEST_F(FPDFPPOEmbedderTest, ImportNPages) {}

TEST_F(FPDFPPOEmbedderTest, BadNupParams) {}

// TODO(Xlou): Add more tests to check output doc content of
// FPDF_ImportNPagesToOne()
TEST_F(FPDFPPOEmbedderTest, NupRenderImage) {}

TEST_F(FPDFPPOEmbedderTest, ImportPageToXObject) {}

TEST_F(FPDFPPOEmbedderTest, ImportPageToXObjectWithSameDoc) {}

TEST_F(FPDFPPOEmbedderTest, XObjectNullParams) {}

TEST_F(FPDFPPOEmbedderTest, Bug925981) {}

TEST_F(FPDFPPOEmbedderTest, Bug1229106) {}

TEST_F(FPDFPPOEmbedderTest, BadRepeatViewerPref) {}

TEST_F(FPDFPPOEmbedderTest, BadCircularViewerPref) {}

TEST_F(FPDFPPOEmbedderTest, CopyViewerPrefTypes) {}

TEST_F(FPDFPPOEmbedderTest, BadIndices) {}

TEST_F(FPDFPPOEmbedderTest, GoodIndices) {}

TEST_F(FPDFPPOEmbedderTest, BadRanges) {}

TEST_F(FPDFPPOEmbedderTest, GoodRanges) {}

TEST_F(FPDFPPOEmbedderTest, Bug664284) {}

TEST_F(FPDFPPOEmbedderTest, Bug750568) {}

TEST_F(FPDFPPOEmbedderTest, ImportWithZeroLengthStream) {}

TEST_F(FPDFPPOEmbedderTest, ImportIntoDestDocWithoutInfo) {}

TEST_F(FPDFPPOEmbedderTest, ImportIntoDocWithWrongPageType) {}