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()12const char* AnnotationStampWithApChecksum() { 13 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) { 14 #if BUILDFLAG(IS_WIN) 15 return "d0dfc003b3e08160e698355b599f7eb8"; 16 #elif BUILDFLAG(IS_APPLE) 17 return "8774ac1779ea66056860290ae7df8f44"; 18 #else 19 return "8b8618de537ec6aee1f3fc53fedfbcfc"; 20 #endif 21 } 22 #if BUILDFLAG(IS_APPLE) 23 return "587311ad93447614cbe5887df14caa78"; 24 #else 25 return "2908fd6166f795dfd73c607ec12c5356"; 26 #endif 27 } 28 29 const char kBlankPage612By792Checksum[] = "1940568c9ba33bac5d0b1ee9558c76b3"; 30 Bug890322Checksum()31const char* Bug890322Checksum() { 32 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) { 33 return "793689536cf64fe792c2f241888c0cf3"; 34 } 35 return "6c674642154408e877d88c6c082d67e9"; 36 } 37 HelloWorldChecksum()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 HelloWorldRemovedChecksum()55const 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 ManyRectanglesChecksum()72const char* ManyRectanglesChecksum() { 73 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) { 74 return "4e7e280c1597222afcb0ee3bb90ec119"; 75 } 76 return "b0170c575b65ecb93ebafada0ff0f038"; 77 } 78 RectanglesChecksum()79const char* RectanglesChecksum() { 80 if (CFX_DefaultRenderDevice::UseSkiaRenderer()) { 81 return "b4e411a6b5ffa59a50efede2efece597"; 82 } 83 return "0a90de37f52127619c3dfb642b5fa2fe"; 84 } 85 TextFormChecksum()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 104