Lines Matching refs:t
61 InternTable t; in TEST_F() local
62 EXPECT_EQ(0U, t.Size()); in TEST_F()
63 t.InternStrong(3, "foo"); in TEST_F()
67 t.InternWeak(foo.Get()); in TEST_F()
68 EXPECT_EQ(1U, t.Size()); in TEST_F()
69 t.InternStrong(3, "bar"); in TEST_F()
70 EXPECT_EQ(2U, t.Size()); in TEST_F()
80 InternTable t; in TEST_F() local
89 for (InternTable::Table::InternalTable& table : t.strong_interns_.tables_) { in TEST_F()
124 InternTable t; in TEST_F() local
125 t.InternStrong(3, "foo"); in TEST_F()
126 t.InternStrong(3, "bar"); in TEST_F()
132 Handle<mirror::String> s0(hs.NewHandle(t.InternWeak(hello.Get()))); in TEST_F()
133 Handle<mirror::String> s1(hs.NewHandle(t.InternWeak(world.Get()))); in TEST_F()
135 EXPECT_EQ(4U, t.Size()); in TEST_F()
143 t.SweepInternTableWeaks(&p); in TEST_F()
146 EXPECT_EQ(2U, t.Size()); in TEST_F()
151 t.InternWeak(still_here.Get()); in TEST_F()
152 EXPECT_EQ(3U, t.Size()); in TEST_F()
157 auto ContainsWeak = [&](InternTable& t, ObjPtr<mirror::String> s) in TEST_F()
159 return t.LookupWeak(soa.Self(), s) == s; in TEST_F()
164 InternTable t; in TEST_F() local
166 Handle<mirror::String> interned_foo_1(hs.NewHandle(t.InternStrong(3, "foo"))); in TEST_F()
167 EXPECT_FALSE(ContainsWeak(t, interned_foo_1.Get())); in TEST_F()
168 Handle<mirror::String> interned_foo_2(hs.NewHandle(t.InternStrong(3, "foo"))); in TEST_F()
169 EXPECT_FALSE(ContainsWeak(t, interned_foo_2.Get())); in TEST_F()
175 InternTable t; in TEST_F() local
182 Handle<mirror::String> interned_foo_1(hs.NewHandle(t.InternWeak(foo_1.Get()))); in TEST_F()
183 Handle<mirror::String> interned_foo_2(hs.NewHandle(t.InternWeak(foo_2.Get()))); in TEST_F()
184 EXPECT_TRUE(ContainsWeak(t, interned_foo_2.Get())); in TEST_F()
190 InternTable t; in TEST_F() local
194 Handle<mirror::String> interned_foo_1(hs.NewHandle(t.InternWeak(foo.Get()))); in TEST_F()
195 EXPECT_TRUE(ContainsWeak(t, interned_foo_1.Get())); in TEST_F()
196 Handle<mirror::String> interned_foo_2(hs.NewHandle(t.InternStrong(3, "foo"))); in TEST_F()
197 EXPECT_FALSE(ContainsWeak(t, interned_foo_2.Get())); in TEST_F()
203 InternTable t; in TEST_F() local
205 Handle<mirror::String> interned_foo_1(hs.NewHandle(t.InternStrong(3, "foo"))); in TEST_F()
206 EXPECT_FALSE(ContainsWeak(t, interned_foo_1.Get())); in TEST_F()
209 Handle<mirror::String> interned_foo_2(hs.NewHandle(t.InternWeak(foo.Get()))); in TEST_F()
210 EXPECT_FALSE(ContainsWeak(t, interned_foo_2.Get())); in TEST_F()