OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkData.h" | 8 #include "SkData.h" |
9 #include "SkPDFFont.h" | 9 #include "SkPDFFont.h" |
10 #include "SkPDFTypes.h" | 10 #include "SkPDFTypes.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 "2 beginbfchar\n\ | 119 "2 beginbfchar\n\ |
120 <000D> <0037>\n\ | 120 <000D> <0037>\n\ |
121 <00FE> <1010>\n\ | 121 <00FE> <1010>\n\ |
122 endbfchar\n"; | 122 endbfchar\n"; |
123 | 123 |
124 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedResultChop2, | 124 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedResultChop2, |
125 buffer.getOffset())); | 125 buffer.getOffset())); |
126 | 126 |
127 buffer.reset(); | 127 buffer.reset(); |
128 | 128 |
129 append_cmap_sections(glyphToUnicode, NULL, &buffer, false, 0xFC, 0x110); | 129 append_cmap_sections(glyphToUnicode, nullptr, &buffer, false, 0xFC, 0x110); |
130 | 130 |
131 char expectedResultSingleBytes[] = | 131 char expectedResultSingleBytes[] = |
132 "2 beginbfchar\n\ | 132 "2 beginbfchar\n\ |
133 <0001> <0000>\n\ | 133 <0001> <0000>\n\ |
134 <0002> <0000>\n\ | 134 <0002> <0000>\n\ |
135 endbfchar\n\ | 135 endbfchar\n\ |
136 1 beginbfrange\n\ | 136 1 beginbfrange\n\ |
137 <0003> <0006> <1010>\n\ | 137 <0003> <0006> <1010>\n\ |
138 endbfrange\n"; | 138 endbfrange\n"; |
139 | 139 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 <004F> <006C>\n\ | 171 <004F> <006C>\n\ |
172 <0051> <006E>\n\ | 172 <0051> <006E>\n\ |
173 endbfchar\n\ | 173 endbfchar\n\ |
174 1 beginbfrange\n\ | 174 1 beginbfrange\n\ |
175 <0056> <0057> <0073>\n\ | 175 <0056> <0057> <0073>\n\ |
176 endbfrange\n"; | 176 endbfrange\n"; |
177 | 177 |
178 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2, | 178 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2, |
179 buffer2.getOffset())); | 179 buffer2.getOffset())); |
180 } | 180 } |
OLD | NEW |