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
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
10namespace pdfium {
11
13 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) {
14#if BUILDFLAG(IS_WIN)
15 return "f7f3a1029cea01cc993fa7770feebdc1";
16#elif BUILDFLAG(IS_APPLE)
17 return "f0867738d59a682b8d57baa88b35afc3";
18#else
19 return "c7ff65a3ad1b01c3a0e94d635f10670e";
20#endif
21 }
22#if BUILDFLAG(IS_APPLE)
23 return "0521eaa52fe2aa43aafd3e4495f63f0b";
24#else
25 return "5f19ddad9d48f5b7b87ee7d92f577db6";
26#endif
27}
28
29const char kBlankPage612By792Checksum[] = "1940568c9ba33bac5d0b1ee9558c76b3";
30
31const char* Bug890322Checksum() {
32 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) {
33 return "793689536cf64fe792c2f241888c0cf3";
34 }
35 return "6c674642154408e877d88c6c082d67e9";
36}
37
38const 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
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
73 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) {
74 return "4e7e280c1597222afcb0ee3bb90ec119";
75 }
76 return "b0170c575b65ecb93ebafada0ff0f038";
77}
78
79const char* RectanglesChecksum() {
80 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) {
81 return "b4e411a6b5ffa59a50efede2efece597";
82 }
83 return "0a90de37f52127619c3dfb642b5fa2fe";
84}
85
86const 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
const char kBlankPage612By792Checksum[]
const char * AnnotationStampWithApChecksum()
const char * RectanglesChecksum()
const char * TextFormChecksum()
const char * HelloWorldChecksum()
const char * HelloWorldRemovedChecksum()
const char * ManyRectanglesChecksum()
const char * Bug890322Checksum()