Lines Matching refs:StringPool
37 StringPool pool; in TEST()
39 StringPool::Ref ref = pool.MakeRef("wut"); in TEST()
44 StringPool pool; in TEST()
46 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST()
47 StringPool::Ref ref_b = pool.MakeRef("hey"); in TEST()
54 StringPool pool; in TEST()
56 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST()
57 StringPool::Ref ref_b = pool.MakeRef("wut"); in TEST()
65 StringPool pool; in TEST()
67 StringPool::Ref ref_a = pool.MakeRef("wut", StringPool::Context(0x81010001)); in TEST()
68 StringPool::Ref ref_b = pool.MakeRef("wut", StringPool::Context(0x81010002)); in TEST()
76 StringPool pool; in TEST()
78 StringPool::Ref ref_a = pool.MakeRef("z"); in TEST()
79 StringPool::Ref ref_b = pool.MakeRef("a"); in TEST()
80 StringPool::Ref ref_c = pool.MakeRef("m"); in TEST()
88 StringPool pool; in TEST()
90 StringPool::Ref ref_a = pool.MakeRef("foo"); in TEST()
93 StringPool::Ref ref_b = pool.MakeRef("wut"); in TEST()
102 StringPool::Ref ref_c = pool.MakeRef("bar"); in TEST()
115 StringPool pool; in TEST()
117 StringPool::Ref ref_a = pool.MakeRef("z"); in TEST()
118 StringPool::Ref ref_b = pool.MakeRef("a"); in TEST()
119 StringPool::Ref ref_c = pool.MakeRef("m"); in TEST()
143 StringPool pool; in TEST()
145 StringPool::Ref ref_a = pool.MakeRef("z"); in TEST()
146 StringPool::Ref ref_b = pool.MakeRef("a"); in TEST()
147 StringPool::Ref ref_c = pool.MakeRef("m"); in TEST()
151 StringPool::Ref ref_d = pool.MakeRef("z"); in TEST()
152 StringPool::Ref ref_e = pool.MakeRef("a"); in TEST()
153 StringPool::Ref ref_f = pool.MakeRef("m"); in TEST()
161 StringPool pool; in TEST()
163 StringPool::StyleRef ref = pool.MakeRef(StyleString{{"android"}, {Span{{"b"}, 2, 6}}}); in TEST()
168 const StringPool::Span& span = ref->spans.front(); in TEST()
175 StringPool pool; in TEST()
177 StringPool::Ref ref = pool.MakeRef("android"); in TEST()
180 StringPool::StyleRef style_ref = pool.MakeRef(StyleString{{"android"}}); in TEST()
186 StringPool pool; in TEST()
188 StringPool::StyleRef ref_a = pool.MakeRef(StyleString{{"beta"}}); in TEST()
189 StringPool::Ref ref_b = pool.MakeRef("alpha"); in TEST()
190 StringPool::StyleRef ref_c = pool.MakeRef(StyleString{{"alpha"}}); in TEST()
205 StringPool pool; in TEST()
207 StringPool::FlattenUtf8(&buffer, pool, &diag); in TEST()
218 StringPool pool; in TEST()
221 StringPool::FlattenUtf16(&buffer, pool, &diag); in TEST()
244 StringPool pool; in TEST()
246 StringPool::Ref ref_a = pool.MakeRef("hello"); in TEST()
247 StringPool::Ref ref_b = pool.MakeRef("goodbye"); in TEST()
248 StringPool::Ref ref_c = pool.MakeRef(sLongString); in TEST()
249 StringPool::Ref ref_d = pool.MakeRef(""); in TEST()
250 StringPool::StyleRef ref_e = in TEST()
262 StringPool::FlattenUtf8(&buffers[0], pool, &diag); in TEST()
263 StringPool::FlattenUtf16(&buffers[1], pool, &diag); in TEST()
309 StringPool pool; in TEST()
310 StringPool::Ref ref_a = pool.MakeRef("\xF0\x90\x90\x80"); // (U+10400) in TEST()
311 StringPool::Ref ref_b = pool.MakeRef("foo \xF0\x90\x90\xB7 bar"); // (U+10437) in TEST()
312 StringPool::Ref ref_c = pool.MakeRef("\xF0\x90\x90\x80\xF0\x90\x90\xB7"); in TEST()
315 StringPool::FlattenUtf8(&buffer, pool, &diag); in TEST()
343 StringPool pool; in TEST()
348 EXPECT_THAT(StringPool::FlattenUtf8(&buffers[0], pool, &diag), Eq(true)); in TEST()
354 EXPECT_THAT(StringPool::FlattenUtf16(&buffers[1], pool, &diag), Eq(true)); in TEST()
359 StringPool pool2; in TEST()
368 EXPECT_THAT(StringPool::FlattenUtf8(&buffers2[0], pool2, &diag), Eq(false)); in TEST()
377 StringPool pool3; in TEST()
380 EXPECT_THAT(StringPool::FlattenUtf16(&buffers2[1], pool3, &diag), Eq(true)); in TEST()