blob: 62f5337c733e474111ab8da17c49b0d82d41e6a5 [file] [log] [blame]
Hui Yingstb4baceb2020-04-28 23:46:10 +00001// Copyright 2020 The PDFium Authors. All rights reserved.
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
9namespace pdfium {
10
Alan Screen02efab72022-08-18 23:02:45 +000011const char* AnnotationStampWithApChecksum() {
Hui Yingst30bfcc52020-07-27 23:54:40 +000012#if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
Alan Screen02efab72022-08-18 23:02:45 +000013 static constexpr char kAnnotationStampWithApChecksum[] =
14 "a31381406d0b95049e418720750b78dd";
Hui Yingstbf9eee12022-05-25 21:20:24 +000015#elif BUILDFLAG(IS_APPLE)
Alan Screen02efab72022-08-18 23:02:45 +000016 static constexpr char kAnnotationStampWithApChecksum[] =
17 "d243b5d64752be0f45b86df7bd2e2708";
Hui Yingst30bfcc52020-07-27 23:54:40 +000018#else
Alan Screen02efab72022-08-18 23:02:45 +000019 static constexpr char kAnnotationStampWithApChecksum[] =
20 "cdde6c161679ab10b07c38c1ef04b7e8";
Hui Yingst30bfcc52020-07-27 23:54:40 +000021#endif
Hui Yingst30bfcc52020-07-27 23:54:40 +000022
Alan Screen02efab72022-08-18 23:02:45 +000023 return kAnnotationStampWithApChecksum;
24}
25
Hui Yingstb4baceb2020-04-28 23:46:10 +000026const char kBlankPage612By792Checksum[] = "1940568c9ba33bac5d0b1ee9558c76b3";
27
Alan Screen02efab72022-08-18 23:02:45 +000028const char* Bug890322Checksum() {
Hui Yingstb4baceb2020-04-28 23:46:10 +000029#if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
Alan Screen02efab72022-08-18 23:02:45 +000030 static constexpr char kBug890322Checksum[] =
31 "793689536cf64fe792c2f241888c0cf3";
Hui Yingstb4baceb2020-04-28 23:46:10 +000032#else
Alan Screen02efab72022-08-18 23:02:45 +000033 static constexpr char kBug890322Checksum[] =
34 "6c674642154408e877d88c6c082d67e9";
Hui Yingstb4baceb2020-04-28 23:46:10 +000035#endif
36
Alan Screen02efab72022-08-18 23:02:45 +000037 return kBug890322Checksum;
38}
39
40const char* HelloWorldChecksum() {
Hui Yingstbf9eee12022-05-25 21:20:24 +000041#if BUILDFLAG(IS_APPLE) && !defined(_SKIA_SUPPORT_) && \
42 !defined(_SKIA_SUPPORT_PATHS_)
Alan Screen02efab72022-08-18 23:02:45 +000043 static constexpr char kHelloWorldChecksum[] =
44 "6eef7237f7591f07616e238422086737";
Hui Yingstb4baceb2020-04-28 23:46:10 +000045#else
Alan Screen02efab72022-08-18 23:02:45 +000046 static constexpr char kHelloWorldChecksum[] =
47 "c1c548442e0e0f949c5550d89bf8ae3b";
Hui Yingst08c40712020-04-29 01:37:35 +000048#endif
Hui Yingst08c40712020-04-29 01:37:35 +000049
Alan Screen02efab72022-08-18 23:02:45 +000050 return kHelloWorldChecksum;
51}
52
53const char* HelloWorldRemovedChecksum() {
Hui Yingstbf9eee12022-05-25 21:20:24 +000054#if BUILDFLAG(IS_APPLE) && !defined(_SKIA_SUPPORT_) && \
55 !defined(_SKIA_SUPPORT_PATHS_)
Alan Screen02efab72022-08-18 23:02:45 +000056 static constexpr char kHelloWorldRemovedChecksum[] =
57 "6e1cae48a2e35c521dee4ca502f48af6";
Hui Yingst08c40712020-04-29 01:37:35 +000058#else
Alan Screen02efab72022-08-18 23:02:45 +000059 static constexpr char kHelloWorldRemovedChecksum[] =
60 "4a9b80f675f7f3bf2da1b02f12449e4b";
Hui Yingstb4baceb2020-04-28 23:46:10 +000061#endif
Hui Yingstb4baceb2020-04-28 23:46:10 +000062
Alan Screen02efab72022-08-18 23:02:45 +000063 return kHelloWorldRemovedChecksum;
64}
65
66const char* ManyRectanglesChecksum() {
Hui Yingstb4baceb2020-04-28 23:46:10 +000067#if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
Alan Screen02efab72022-08-18 23:02:45 +000068 static constexpr char kManyRectanglesChecksum[] =
69 "4e7e280c1597222afcb0ee3bb90ec119";
Hui Yingstb4baceb2020-04-28 23:46:10 +000070#else
Alan Screen02efab72022-08-18 23:02:45 +000071 static constexpr char kManyRectanglesChecksum[] =
72 "b0170c575b65ecb93ebafada0ff0f038";
Hui Yingstb4baceb2020-04-28 23:46:10 +000073#endif
74
Alan Screen02efab72022-08-18 23:02:45 +000075 return kManyRectanglesChecksum;
76}
77
78const char* RectanglesChecksum() {
Hui Yingst30bfcc52020-07-27 23:54:40 +000079#if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
Alan Screen02efab72022-08-18 23:02:45 +000080 static constexpr char kRectanglesChecksum[] =
81 "b4e411a6b5ffa59a50efede2efece597";
82#else
83 static constexpr char kRectanglesChecksum[] =
84 "0a90de37f52127619c3dfb642b5fa2fe";
85#endif
86
87 return kRectanglesChecksum;
88}
89
90const char* TextFormChecksum() {
91#if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
92 static constexpr char kTextFormChecksum[] =
93 "e6d2eb75f18d773f0dad938b1bb22e23";
Lei Zhang42d30c22022-01-12 19:24:43 +000094#elif BUILDFLAG(IS_APPLE)
Alan Screen02efab72022-08-18 23:02:45 +000095 static constexpr char kTextFormChecksum[] =
96 "fa2bf756942a950101fc147fc4ef3f82";
Hui Yingst30bfcc52020-07-27 23:54:40 +000097#else
Alan Screen02efab72022-08-18 23:02:45 +000098 static constexpr char kTextFormChecksum[] =
99 "6f86fe1dbed5965d91aec6e0b829e29f";
Hui Yingst30bfcc52020-07-27 23:54:40 +0000100#endif
Hui Yingst30bfcc52020-07-27 23:54:40 +0000101
Alan Screen02efab72022-08-18 23:02:45 +0000102 return kTextFormChecksum;
103}
104
Hui Yingstb4baceb2020-04-28 23:46:10 +0000105} // namespace pdfium