Lines Matching refs:cswh
136 CountingSystemWeakHolder cswh; in TEST_F() local
137 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
145 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
151 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
152 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
153 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()
156 EXPECT_FALSE(cswh.Get().IsNull()); in TEST_F()
157 EXPECT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
161 CountingSystemWeakHolder cswh; in TEST_F() local
162 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
166 cswh.Set(GcRoot<mirror::Object>(mirror::String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
172 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
173 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
174 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()
177 EXPECT_TRUE(cswh.Get().IsNull()); in TEST_F()
181 CountingSystemWeakHolder cswh; in TEST_F() local
182 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
190 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
196 ASSERT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
197 ASSERT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
198 ASSERT_EQ(1U, cswh.sweep_count_); in TEST_F()
201 ASSERT_FALSE(cswh.Get().IsNull()); in TEST_F()
202 ASSERT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
205 Runtime::Current()->RemoveSystemWeakHolder(&cswh); in TEST_F()
211 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
212 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
213 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()