Searched refs:test_policy (Results 1 – 12 of 12) sorted by relevance
| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | ctor.move.cpp | 37 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 D | ctor.copy.cpp | 36 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 D | dtor.cpp | 16 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 D | ctor.ptr.retain.cpp | 20 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 D | ctor.ptr.no_retain.cpp | 20 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 D | ctor.default.cpp | 18 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 D | ctor.nullptr.cpp | 18 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 D | test_policy.h | 7 struct test_policy { struct 76 using test_shared_ptr = libkern::intrusive_shared_ptr<T, test_policy>;
|
| H A D | abi_helper.h | 12 using SharedPtr = libkern::intrusive_shared_ptr<T, test_policy>;
|
| /xnu-11215/tests/bounded_array_ref_src/ |
| H A D | test_policy.h | 13 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 D | test_policy.h | 10 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 D | test_utils.h | 8 struct test_policy { struct 17 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>; argument
|