Lines Matching refs:cswh

133   CountingSystemWeakHolder cswh;  in TEST_F()  local
134 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
142 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
148 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
149 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
150 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()
153 EXPECT_FALSE(cswh.Get().IsNull()); in TEST_F()
154 EXPECT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
158 CountingSystemWeakHolder cswh; in TEST_F() local
159 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
163 cswh.Set(GcRoot<mirror::Object>(mirror::String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
169 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
170 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
171 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()
174 EXPECT_TRUE(cswh.Get().IsNull()); in TEST_F()
178 CountingSystemWeakHolder cswh; in TEST_F() local
179 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
187 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
193 ASSERT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
194 ASSERT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
195 ASSERT_EQ(1U, cswh.sweep_count_); in TEST_F()
198 ASSERT_FALSE(cswh.Get().IsNull()); in TEST_F()
199 ASSERT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
202 Runtime::Current()->RemoveSystemWeakHolder(&cswh); in TEST_F()
208 EXPECT_EQ(CollectorDoesAllowOrBroadcast() ? 1U : 0U, cswh.allow_count_); in TEST_F()
209 EXPECT_EQ(CollectorDoesDisallow() ? 1U : 0U, cswh.disallow_count_); in TEST_F()
210 EXPECT_EQ(1U, cswh.sweep_count_); in TEST_F()