18 testing::Optional(2802u));
20 testing::Optional(4294967295u));
24 testing::Optional(1u));
26 testing::Optional(194u));
28 testing::Optional(162u));
91 static constexpr uint8_t kInput1[] =
92 "beginbfchar<1><0041><2><0042>endbfchar";
93 auto stream =
pdfium::MakeRetain<CPDF_Stream>(kInput1);
97 EXPECT_EQ(1u, map.GetUnicodeCountByCharcodeForTesting(1u));
98 EXPECT_EQ(1u, map.GetUnicodeCountByCharcodeForTesting(2u));
102 static constexpr uint8_t kInput2[] =
103 "beginbfrange<0><0><0041><0><0><0042>endbfrange";
104 auto stream =
pdfium::MakeRetain<CPDF_Stream>(kInput2);
108 EXPECT_EQ(2u, map.GetUnicodeCountByCharcodeForTesting(0u));
113 static constexpr uint8_t kInput3[] =
114 "beginbfrange<0><0>[<0041>]endbfrange\n"
115 "beginbfchar<0><0041>endbfchar";
116 auto stream =
pdfium::MakeRetain<CPDF_Stream>(kInput3);
119 EXPECT_EQ(1u, map.GetUnicodeCountByCharcodeForTesting(0u));