Lines Matching refs:test_policy
36 test_policy::retain_count = 0; in tests()
37 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests()
38 libkern::intrusive_shared_ptr<To, test_policy> to(from); // explicit in tests()
39 CHECK(test_policy::retain_count == 2); in tests()
43 test_policy::retain_count = 0; in tests()
44 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests()
45 libkern::intrusive_shared_ptr<To, test_policy> to{from}; // explicit in tests()
46 CHECK(test_policy::retain_count == 2); in tests()
50 test_policy::retain_count = 0; in tests()
51 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests()
52 libkern::intrusive_shared_ptr<To, test_policy> to = from; // implicit in tests()
53 CHECK(test_policy::retain_count == 2); in tests()
59 test_policy::retain_count = 0; in tests()
60 libkern::intrusive_shared_ptr<From, test_policy> const from = nullptr; in tests()
61 libkern::intrusive_shared_ptr<To, test_policy> to = from; in tests()
62 CHECK(test_policy::retain_count == 0); in tests()