• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
AnnotationStampWithApChecksum()12 const char* AnnotationStampWithApChecksum() {
13   if (CFX_DefaultRenderDevice::SkiaIsDefaultRenderer())
14     return "a31381406d0b95049e418720750b78dd";
15 #if BUILDFLAG(IS_APPLE)
16   return "0521eaa52fe2aa43aafd3e4495f63f0b";
17 #else
18   return "5f19ddad9d48f5b7b87ee7d92f577db6";
19 #endif
20 }
21 
22 const char kBlankPage612By792Checksum[] = "1940568c9ba33bac5d0b1ee9558c76b3";
23 
Bug890322Checksum()24 const char* Bug890322Checksum() {
25   if (CFX_DefaultRenderDevice::SkiaIsDefaultRenderer())
26     return "793689536cf64fe792c2f241888c0cf3";
27   return "6c674642154408e877d88c6c082d67e9";
28 }
29 
HelloWorldChecksum()30 const char* HelloWorldChecksum() {
31 #if BUILDFLAG(IS_APPLE)
32   if (!CFX_DefaultRenderDevice::SkiaIsDefaultRenderer())
33     return "6eef7237f7591f07616e238422086737";
34 #endif
35   return "c1c548442e0e0f949c5550d89bf8ae3b";
36 }
37 
HelloWorldRemovedChecksum()38 const char* HelloWorldRemovedChecksum() {
39 #if BUILDFLAG(IS_APPLE)
40   if (!CFX_DefaultRenderDevice::SkiaIsDefaultRenderer())
41     return "6e1cae48a2e35c521dee4ca502f48af6";
42 #endif
43   return "4a9b80f675f7f3bf2da1b02f12449e4b";
44 }
45 
ManyRectanglesChecksum()46 const char* ManyRectanglesChecksum() {
47   if (CFX_DefaultRenderDevice::SkiaIsDefaultRenderer())
48     return "4e7e280c1597222afcb0ee3bb90ec119";
49   return "b0170c575b65ecb93ebafada0ff0f038";
50 }
51 
RectanglesChecksum()52 const char* RectanglesChecksum() {
53   if (CFX_DefaultRenderDevice::SkiaIsDefaultRenderer())
54     return "b4e411a6b5ffa59a50efede2efece597";
55   return "0a90de37f52127619c3dfb642b5fa2fe";
56 }
57 
TextFormChecksum()58 const char* TextFormChecksum() {
59   if (CFX_DefaultRenderDevice::SkiaIsDefaultRenderer())
60     return "e6d2eb75f18d773f0dad938b1bb22e23";
61 #if BUILDFLAG(IS_APPLE)
62   return "fa2bf756942a950101fc147fc4ef3f82";
63 #else
64   return "6f86fe1dbed5965d91aec6e0b829e29f";
65 #endif
66 }
67 
68 }  // namespace pdfium
69