Home
last modified time | relevance | path

Searched refs:sp1 (Results 1 – 2 of 2) sorted by relevance

/system/core/libutils/
DRefBase_test.cpp91 sp<Foo> sp1(foo); in TEST() local
92 wp<Foo> wp1(sp1); in TEST()
97 sp<Foo> sp2 = std::move(sp1); in TEST()
100 ASSERT_EQ(nullptr, sp1.get()) << "std::move failed, sp1 is still valid"; in TEST()
103 sp1 = std::move(sp2); in TEST()
108 sp<Foo> sp2 = std::move(sp1); in TEST()
135 sp<Foo> sp1(foo); in TEST() local
137 wp<Foo> wp1(sp1); in TEST()
138 wp<Foo> wp2(sp1); in TEST()
141 ASSERT_TRUE(wp1 == sp1); in TEST()
[all …]
DStrongPointer_test.cpp56 sp<TypeParam> sp1 = sp<TypeParam>::make(&isDeleted); in TYPED_TEST() local
57 TypeParam* foo = sp1.get(); in TYPED_TEST()
60 sp<TypeParam> sp2 = std::move(sp1); in TYPED_TEST()
62 ASSERT_EQ(nullptr, sp1.get()) << "std::move failed, sp1 is still valid"; in TYPED_TEST()
65 sp1 = std::move(sp2); in TYPED_TEST()
70 sp<TypeParam> sp2 = std::move(sp1); in TYPED_TEST()