Lines Matching refs:cswh

135   CountingSystemWeakHolder cswh;  in TEST_F()  local
136 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
144 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
150 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
151 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
152 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()
155 EXPECT_FALSE(cswh.Get().IsNull()); in TEST_F()
156 EXPECT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
160 CountingSystemWeakHolder cswh; in TEST_F() local
161 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
165 cswh.Set(GcRoot<mirror::Object>(mirror::String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
171 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
172 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
173 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()
176 EXPECT_TRUE(cswh.Get().IsNull()); in TEST_F()
180 CountingSystemWeakHolder cswh; in TEST_F() local
181 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
189 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
195 ASSERT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
196 ASSERT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
197 ASSERT_EQ(1U, cswh.sweep_count_); in TEST_F()
200 ASSERT_FALSE(cswh.Get().IsNull()); in TEST_F()
201 ASSERT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
204 Runtime::Current()->RemoveSystemWeakHolder(&cswh); in TEST_F()
210 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
211 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
212 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()