#include "pdf/pdfium/pdfium_test_base.h"
#include <stdint.h>
#include <memory>
#include <string>
#include <utility>
#include "base/check_op.h"
#include "base/memory/scoped_refptr.h"
#include "build/build_config.h"
#include "pdf/loader/url_loader.h"
#include "pdf/pdfium/pdfium_engine.h"
#include "pdf/pdfium/pdfium_form_filler.h"
#include "pdf/test/test_client.h"
#include "pdf/test/test_document_loader.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/pdfium/public/fpdfview.h"
#include "ui/gfx/geometry/size.h"
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#include "base/environment.h"
#endif
namespace chrome_pdf {
namespace {
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
base::FilePath GetTestFontsDir() { … }
#endif
}
PDFiumTestBase::PDFiumTestBase() = default;
PDFiumTestBase::~PDFiumTestBase() = default;
bool PDFiumTestBase::UsingTestFonts() { … }
void PDFiumTestBase::SetUp() { … }
void PDFiumTestBase::TearDown() { … }
std::unique_ptr<PDFiumEngine> PDFiumTestBase::InitializeEngine(
TestClient* client,
const base::FilePath::CharType* pdf_name) { … }
PDFiumTestBase::InitializeEngineResult
PDFiumTestBase::InitializeEngineWithoutLoading(
TestClient* client,
const base::FilePath::CharType* pdf_name) { … }
void PDFiumTestBase::InitializePDFiumSDK() { … }
const PDFiumPage& PDFiumTestBase::GetPDFiumPageForTest(
const PDFiumEngine& engine,
size_t page_index) { … }
PDFiumPage& PDFiumTestBase::GetPDFiumPageForTest(PDFiumEngine& engine,
size_t page_index) { … }
PDFiumTestBase::InitializeEngineResult::InitializeEngineResult() = default;
PDFiumTestBase::InitializeEngineResult::InitializeEngineResult(
InitializeEngineResult&& other) noexcept = default;
PDFiumTestBase::InitializeEngineResult&
PDFiumTestBase::InitializeEngineResult::operator=(
InitializeEngineResult&& other) noexcept = default;
PDFiumTestBase::InitializeEngineResult::~InitializeEngineResult() = default;
void PDFiumTestBase::InitializeEngineResult::FinishLoading() { … }
}