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_npagetooneexporter_unittest.cpp
Go to the documentation of this file.
1
// Copyright 2024 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/edit/cpdf_npagetooneexporter.h"
6
7
#
include
"core/fxcrt/bytestring.h"
8
#
include
"testing/gtest/include/gtest/gtest.h"
9
10
TEST
(
NPageToOneExporter
,
GenerateSubPageContentStream
) {
11
const
char
kExpected[] =
"q\n.5 0 0 .5 .000001 1000000000000 cm\n/foo Do Q\n"
;
12
13
CPDF_NPageToOneExporter::
NupPageSettings
settings;
14
settings.sub_page_start_point = {0.000001f, 1000000000000.0f};
15
settings
.
scale
= 0.5f;
16
EXPECT_EQ(kExpected,
17
CPDF_NPageToOneExporter
::
GenerateSubPageContentStreamForTesting
(
18
"foo"
,
settings
)
);
19
}
CPDF_NPageToOneExporter::GenerateSubPageContentStreamForTesting
static ByteString GenerateSubPageContentStreamForTesting(const ByteString &xobject_name, const NupPageSettings &settings)
Definition
cpdf_npagetooneexporter.cpp:214
TEST
TEST(FXCRYPT, MD5GenerateEmtpyData)
Definition
fx_crypt_unittest.cpp:50
CPDF_NPageToOneExporter::NupPageSettings
Definition
cpdf_npagetooneexporter.h:43
CPDF_NPageToOneExporter::NupPageSettings::scale
float scale
Definition
cpdf_npagetooneexporter.h:45
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
edit
cpdf_npagetooneexporter_unittest.cpp
Generated on
for Qt by
1.14.0