Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
embedder_test_constants.cpp
Go to the documentation of this file.
1
// Copyright 2020 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
"testing/embedder_test_constants.h"
6
7
#
include
"build/build_config.h"
8
#
include
"core/fxge/cfx_defaultrenderdevice.h"
9
10
namespace
pdfium
{
11
12
const
char
*
AnnotationStampWithApChecksum
() {
13
if
(CFX_DefaultRenderDevice
::
UseSkiaRenderer
(
)
) {
14
#
if
BUILDFLAG
(
IS_WIN
)
15
return
"25b2a610cab9d656b9ab5f72746c9e2e"
;
16
#
elif
BUILDFLAG
(
IS_APPLE
)
17
return
"0f6501f8e22441630bdd535363c93e59"
;
18
#
else
19
return
"1814140b1a9a9776546af7894e21d17f"
;
20
#
endif
21
}
22
#
if
BUILDFLAG
(
IS_APPLE
)
23
return
"0521eaa52fe2aa43aafd3e4495f63f0b"
;
24
#
else
25
return
"5f19ddad9d48f5b7b87ee7d92f577db6"
;
26
#
endif
27
}
28
29
const
char
kBlankPage612By792Checksum
[] =
"1940568c9ba33bac5d0b1ee9558c76b3"
;
30
31
const
char
*
Bug890322Checksum
() {
32
if
(CFX_DefaultRenderDevice
::
UseSkiaRenderer
(
)
) {
33
return
"793689536cf64fe792c2f241888c0cf3"
;
34
}
35
return
"6c674642154408e877d88c6c082d67e9"
;
36
}
37
38
const
char
*
HelloWorldChecksum
() {
39
if
(CFX_DefaultRenderDevice
::
UseSkiaRenderer
(
)
) {
40
#
if
BUILDFLAG
(
IS_WIN
)
41
return
"6023c7d8b7258cc686a1d1dbd0f4d6d0"
;
42
#
elif
BUILDFLAG
(
IS_APPLE
)
43
return
"b110924c4af6e87232249ea2a564f0e4"
;
44
#
else
45
return
"d1decde2de1c07b5274cc8cb44f92427"
;
46
#
endif
47
}
48
#
if
BUILDFLAG
(
IS_APPLE
)
49
return
"6eef7237f7591f07616e238422086737"
;
50
#
else
51
return
"c1c548442e0e0f949c5550d89bf8ae3b"
;
52
#
endif
53
}
54
55
const
char
*
HelloWorldRemovedChecksum
() {
56
if
(CFX_DefaultRenderDevice
::
UseSkiaRenderer
(
)
) {
57
#
if
BUILDFLAG
(
IS_WIN
)
58
return
"7db00f520f0838da10ef45373af3f6aa"
;
59
#
elif
BUILDFLAG
(
IS_APPLE
)
60
return
"99cefacd84710f3fb2e3d129ba68ae8a"
;
61
#
else
62
return
"6e0307348e7c1b92f2f061f92f62fd45"
;
63
#
endif
64
}
65
#
if
BUILDFLAG
(
IS_APPLE
)
66
return
"6e1cae48a2e35c521dee4ca502f48af6"
;
67
#
else
68
return
"4a9b80f675f7f3bf2da1b02f12449e4b"
;
69
#
endif
70
}
71
72
const
char
*
ManyRectanglesChecksum
() {
73
if
(CFX_DefaultRenderDevice
::
UseSkiaRenderer
(
)
) {
74
return
"4e7e280c1597222afcb0ee3bb90ec119"
;
75
}
76
return
"b0170c575b65ecb93ebafada0ff0f038"
;
77
}
78
79
const
char
*
RectanglesChecksum
() {
80
if
(CFX_DefaultRenderDevice
::
UseSkiaRenderer
(
)
) {
81
return
"b4e411a6b5ffa59a50efede2efece597"
;
82
}
83
return
"0a90de37f52127619c3dfb642b5fa2fe"
;
84
}
85
86
const
char
*
TextFormChecksum
() {
87
if
(CFX_DefaultRenderDevice
::
UseSkiaRenderer
(
)
) {
88
#
if
BUILDFLAG
(
IS_WIN
)
89
return
"e83f49ddea0822734a16b986e9935732"
;
90
#
elif
BUILDFLAG
(
IS_APPLE
)
91
return
"32913f21b1012b74eef37737a03a92b7"
;
92
#
else
93
return
"b259776fd156003e2a594d1c7ce2d8d7"
;
94
#
endif
95
}
96
#
if
BUILDFLAG
(
IS_APPLE
)
97
return
"fa2bf756942a950101fc147fc4ef3f82"
;
98
#
else
99
return
"6f86fe1dbed5965d91aec6e0b829e29f"
;
100
#
endif
101
}
102
103
}
// namespace pdfium
CFX_DefaultRenderDevice::UseSkiaRenderer
static bool UseSkiaRenderer()
Definition
cfx_defaultrenderdevice.cpp:28
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
pdfium::kBlankPage612By792Checksum
const char kBlankPage612By792Checksum[]
Definition
embedder_test_constants.cpp:29
pdfium::AnnotationStampWithApChecksum
const char * AnnotationStampWithApChecksum()
Definition
embedder_test_constants.cpp:12
pdfium::RectanglesChecksum
const char * RectanglesChecksum()
Definition
embedder_test_constants.cpp:79
pdfium::TextFormChecksum
const char * TextFormChecksum()
Definition
embedder_test_constants.cpp:86
pdfium::HelloWorldChecksum
const char * HelloWorldChecksum()
Definition
embedder_test_constants.cpp:38
pdfium::HelloWorldRemovedChecksum
const char * HelloWorldRemovedChecksum()
Definition
embedder_test_constants.cpp:55
pdfium::ManyRectanglesChecksum
const char * ManyRectanglesChecksum()
Definition
embedder_test_constants.cpp:72
pdfium::Bug890322Checksum
const char * Bug890322Checksum()
Definition
embedder_test_constants.cpp:31
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
embedder_test_constants.cpp
Generated on
for Qt by
1.18.0