Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_test_document.cpp
Go to the documentation of this file.
1// Copyright 2022 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "core/fpdfapi/parser/cpdf_test_document.h"
6
7#include <memory>
8#include <utility>
9
10#include "core/fpdfapi/page/cpdf_docpagedata.h"
11#include "core/fpdfapi/render/cpdf_docrenderdata.h"
12
14 : CPDF_Document(std::make_unique<CPDF_DocRenderData>(),
15 std::make_unique<CPDF_DocPageData>()) {}
16
17void CPDF_TestDocument::SetRoot(RetainPtr<CPDF_Dictionary> root) {
18 SetRootForTesting(std::move(root));
19}
void SetRootForTesting(RetainPtr< CPDF_Dictionary > root)
void SetRoot(RetainPtr< CPDF_Dictionary > root)