Lines Matching refs:ref
28 StringPool::Ref ref = pool.makeRef(u"wut");
29 EXPECT_EQ(*ref, u"wut");
35 StringPool::Ref ref = pool.makeRef(u"wut");
36 StringPool::Ref ref2 = pool.makeRef(u"hey");
38 EXPECT_EQ(*ref, u"wut");
45 StringPool::Ref ref = pool.makeRef(u"wut");
46 StringPool::Ref ref2 = pool.makeRef(u"wut");
48 EXPECT_EQ(*ref, u"wut");
56 StringPool::Ref ref = pool.makeRef(u"z");
57 StringPool::Ref ref2 = pool.makeRef(u"a");
58 StringPool::Ref ref3 = pool.makeRef(u"m");
60 EXPECT_EQ(0u, ref.getIndex());
68 StringPool::Ref refA = pool.makeRef(u"foo");
70 StringPool::Ref ref = pool.makeRef(u"wut");
71 EXPECT_EQ(*ref, u"wut");
74 StringPool::Ref refB = pool.makeRef(u"bar");
90 StringPool::Ref ref = pool.makeRef(u"z");
92 StringPool::Ref ref3 = pool.makeRef(u"m");
94 EXPECT_EQ(*ref, u"z");
95 EXPECT_EQ(0u, ref.getIndex());
108 EXPECT_EQ(*ref, u"z");
109 EXPECT_EQ(2u, ref.getIndex());
121 StringPool::Ref ref = pool.makeRef(u"z");
122 StringPool::Ref ref2 = pool.makeRef(u"a");
123 StringPool::Ref ref3 = pool.makeRef(u"m");
129 StringPool::Ref ref4 = pool.makeRef(u"z");
130 StringPool::Ref ref5 = pool.makeRef(u"a");
131 StringPool::Ref ref6 = pool.makeRef(u"m");
133 EXPECT_EQ(ref4.getIndex(), ref.getIndex());
148 StringPool::StyleRef ref = pool.makeRef(str);
150 EXPECT_EQ(0u, ref.getIndex());
151 EXPECT_EQ(std::u16string(u"android"), *(ref->str));
152 ASSERT_EQ(1u, ref->spans.size());
154 const StringPool::Span& span = ref->spans.front();
163 StringPool::Ref ref = pool.makeRef(u"android");
168 EXPECT_NE(ref.getIndex(), styleRef.getIndex());
208 StringPool::Ref ref1 = pool.makeRef(u"hello");
209 StringPool::Ref ref2 = pool.makeRef(u"goodbye");
210 StringPool::Ref ref3 = pool.makeRef(sLongString);