Home | History | Annotate | Download | only in tests

Lines Matching defs:Paint

127 class Paint {
161 Paint paint;
162 REPORTER_ASSERT(reporter, paint.fEffect.get() == nullptr);
163 REPORTER_ASSERT(reporter, !paint.get());
166 paint.set(Create());
168 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 1);
170 if (paint.get()) {
175 if (!paint.get()) {
181 paint.set(nullptr);
184 if (paint.get()) {
189 if (!paint.get()) {
199 paint.set(e);
201 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 2);
203 Paint paint2;
204 paint2.set(paint.get());
206 REPORTER_ASSERT(reporter, paint.fEffect.get()->fRefCnt == 3);
209 delete paint.get()->method();
213 delete (*paint.get()).method();
216 paint.set(nullptr);
235 paint.set(EffectImpl::Create());
237 paint.set(nullptr);
243 paint.set(std::move(baz));
246 paint.set(nullptr);
272 paint.set(baz);
276 paint.set(nullptr);