Home
last modified time | relevance | path

Searched refs:test_policy (Results 1 – 12 of 12) sorted by relevance

/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dctor.move.cpp37 test_policy::retain_count = 0; in tests()
39 CHECK(test_policy::retain_count == 1); in tests()
43 CHECK(test_policy::retain_count == 1); in tests()
48 test_policy::retain_count = 0; in tests()
50 CHECK(test_policy::retain_count == 1); in tests()
54 CHECK(test_policy::retain_count == 1); in tests()
59 test_policy::retain_count = 0; in tests()
61 CHECK(test_policy::retain_count == 1); in tests()
65 CHECK(test_policy::retain_count == 1); in tests()
72 test_policy::retain_count = 3; in tests()
[all …]
H A Dctor.copy.cpp36 test_policy::retain_count = 0; 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()
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()
53 CHECK(test_policy::retain_count == 2); in tests()
59 test_policy::retain_count = 0; in tests()
61 libkern::intrusive_shared_ptr<To, test_policy> to = from; in tests()
[all …]
H A Ddtor.cpp16 test_policy::retain_count = 3;
19 libkern::intrusive_shared_ptr<T, test_policy> ptr(&obj, libkern::no_retain);
20 CHECK(test_policy::retain_count == 3);
23 CHECK(test_policy::retain_count == 2);
28 test_policy::retain_count = 3;
31 libkern::intrusive_shared_ptr<T, test_policy> ptr = nullptr;
32 CHECK(test_policy::retain_count == 3);
35 CHECK(test_policy::retain_count == 3); // not decremented
H A Dctor.ptr.retain.cpp20 test_policy::retain_count = 0; in tests()
21 libkern::intrusive_shared_ptr<TQual, test_policy> ptr(&obj, libkern::retain); in tests()
23 CHECK(test_policy::retain_count == 1); in tests()
26 test_policy::retain_count = 0; in tests()
27 libkern::intrusive_shared_ptr<TQual, test_policy> ptr{&obj, libkern::retain}; in tests()
29 CHECK(test_policy::retain_count == 1); in tests()
H A Dctor.ptr.no_retain.cpp20 test_policy::retain_count = 0; in tests()
21 libkern::intrusive_shared_ptr<TQual, test_policy> ptr(&obj, libkern::no_retain); in tests()
23 CHECK(test_policy::retain_count == 0); in tests()
26 test_policy::retain_count = 0; in tests()
27 libkern::intrusive_shared_ptr<TQual, test_policy> ptr{&obj, libkern::no_retain}; in tests()
29 CHECK(test_policy::retain_count == 0); in tests()
H A Dctor.default.cpp18 libkern::intrusive_shared_ptr<T, test_policy> ptr; in tests()
22 libkern::intrusive_shared_ptr<T, test_policy> ptr{}; in tests()
26 …libkern::intrusive_shared_ptr<T, test_policy> ptr = libkern::intrusive_shared_ptr<T, test_policy>(… in tests()
30 libkern::intrusive_shared_ptr<T, test_policy> ptr = {}; in tests()
H A Dctor.nullptr.cpp18 libkern::intrusive_shared_ptr<T, test_policy> ptr = nullptr; in tests()
22 libkern::intrusive_shared_ptr<T, test_policy> ptr{nullptr}; in tests()
26 libkern::intrusive_shared_ptr<T, test_policy> ptr(nullptr); in tests()
H A Dtest_policy.h7 struct test_policy { struct
76 using test_shared_ptr = libkern::intrusive_shared_ptr<T, test_policy>;
H A Dabi_helper.h12 using SharedPtr = libkern::intrusive_shared_ptr<T, test_policy>;
/xnu-11215/tests/bounded_array_ref_src/
H A Dtest_policy.h13 struct test_policy { struct
42 using test_bounded_array_ref = libkern::bounded_array_ref<T, test_policy>;
45 using test_bounded_array = libkern::bounded_array<T, N, test_policy>;
48 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;
/xnu-11215/tests/bounded_array_src/
H A Dtest_policy.h10 struct test_policy { struct
19 using test_bounded_array = libkern::bounded_array<T, N, test_policy>; argument
22 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;
/xnu-11215/tests/bounded_ptr_src/
H A Dtest_utils.h8 struct test_policy { struct
17 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>; argument