Lines Matching refs:Foo
35 class Foo : public RefBase { class
37 Foo(bool* deleted_check) : mDeleted(deleted_check) { in Foo() function in Foo
41 ~Foo() { in ~Foo()
88 Foo* foo = new Foo(&isDeleted); in TEST()
91 sp<Foo> sp1(foo); in TEST()
92 wp<Foo> wp1(sp1); in TEST()
97 sp<Foo> sp2 = std::move(sp1); in TEST()
108 sp<Foo> sp2 = std::move(sp1); in TEST()
116 Foo* foo = new Foo(&isDeleted); in TEST()
119 wp<Foo> wp1(foo); in TEST()
122 wp<Foo> wp2 = wp1; in TEST()
133 Foo* foo = new Foo(&isDeleted); in TEST()
134 Foo* foo2 = new Foo(&isDeleted2); in TEST()
135 sp<Foo> sp1(foo); in TEST()
136 sp<Foo> sp2(foo2); in TEST()
137 wp<Foo> wp1(sp1); in TEST()
138 wp<Foo> wp2(sp1); in TEST()
139 wp<Foo> wp3(sp2); in TEST()
152 wp<Foo>wp_smaller = sp1_smaller ? wp1 : wp3; in TEST()
153 wp<Foo>wp_larger = sp1_smaller ? wp3 : wp1; in TEST()
188 sp<Foo> sp3(new Foo(&isDeleted3)); in TEST()
189 wp<Foo> wp4(sp3); in TEST()
190 wp<Foo> wp5; in TEST()
200 sp<Foo> sp3; in TEST()
201 wp<Foo> wp4(sp3); in TEST()
202 wp<Foo> wp5; in TEST()
246 sp<Foo> foo = sp<Foo>::make(&isDeleted); in TEST()
247 wp<Foo> weakFoo = foo; in TEST()
249 EXPECT_EQ(weakFoo, wp<Foo>::fromExisting(foo.get())); in TEST()
250 EXPECT_EQ(weakFoo.unsafe_get(), wp<Foo>::fromExisting(foo.get()).unsafe_get()); in TEST()
260 Foo* foo = new Foo(&isDeleted); in TEST()
263 EXPECT_DEATH(wp<Foo>::fromExisting(foo), ""); in TEST()