Lines Matching refs:test_policy
37 test_policy::retain_count = 0; in tests()
38 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests()
39 CHECK(test_policy::retain_count == 1); in tests()
42 libkern::intrusive_shared_ptr<To, test_policy> to(std::move(from)); // explicit in tests()
43 CHECK(test_policy::retain_count == 1); in tests()
48 test_policy::retain_count = 0; in tests()
49 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests()
50 CHECK(test_policy::retain_count == 1); in tests()
53 libkern::intrusive_shared_ptr<To, test_policy> to{std::move(from)}; // explicit in tests()
54 CHECK(test_policy::retain_count == 1); in tests()
59 test_policy::retain_count = 0; in tests()
60 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests()
61 CHECK(test_policy::retain_count == 1); in tests()
64 libkern::intrusive_shared_ptr<To, test_policy> to = std::move(from); // implicit in tests()
65 CHECK(test_policy::retain_count == 1); in tests()
72 test_policy::retain_count = 3; in tests()
73 libkern::intrusive_shared_ptr<From, test_policy> from = nullptr; in tests()
74 libkern::intrusive_shared_ptr<To, test_policy> to = std::move(from); in tests()
75 CHECK(test_policy::retain_count == 3); in tests()