26static constexpr SkGlyphID kMaximumGlyphIndex = UINT16_MAX;
29 const char*
buffer,
size_t len) {
30 if (len != strlen(
buffer)) {
34 const size_t streamSize =
stream.bytesWritten();
36 if (
offset + len > streamSize) {
74 for (uint16_t i = 14; i < 0xFE; ++i) {
89 for (uint16_t v : glyphsInSubset) {
93 std::min<SkGlyphID>(0xFFFF, lastGlyphID));
95 char expectedResult[] =
103<0005> <0007> <0027>\n\
104<000B> <000D> <0035>\n\
105<00FE> <00FF> <1010>\n\
106<0100> <0101> <1012>\n\
116 std::min<SkGlyphID>(0x00FF, lastGlyphID));
118 char expectedResultChop1[] =
124<000B> <000D> <0035>\n\
125<00FE> <00FF> <1010>\n\
135 std::min<SkGlyphID>(0x00FE, lastGlyphID));
137 char expectedResultChop2[] =
149 std::min<SkGlyphID>(0x110, lastGlyphID));
151 char expectedResultSingleBytes[] =
161 expectedResultSingleBytes,
164 glyphToUnicode.
reset();
165 glyphsInSubset.
reset();
185 for (uint16_t v : glyphsInSubset) {
189 std::min<SkGlyphID>(0xFFFF, lastGlyphID));
191 char expectedResult2[] =
199<0056> <0057> <0073>\n\
void SkPDFAppendCmapSections(const SkUnichar *glyphToUnicode, const SkPDFGlyphUse *subset, SkDynamicMemoryWStream *cmap, bool multiByteGlyphs, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID)
constexpr uint16_t SkToU16(S x)
#define DEF_TEST(name, reporter)
#define REPORTER_ASSERT(r, cond,...)
size_t bytesWritten() const override
void push_back(const T &v)
static const uint8_t buffer[]
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data