/external/libcxx/test/std/utilities/memory/default.allocator/allocator.members/ |
D | allocate.pass.cpp | 55 globalMemCounter.reset(); in test_aligned() 60 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_aligned() 62 globalMemCounter.last_new_size = 0; in test_aligned() 63 globalMemCounter.last_new_align = 0; in test_aligned() 66 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_aligned() 67 assert(globalMemCounter.checkNewCalledEq(1)); in test_aligned() 68 assert(globalMemCounter.checkAlignedNewCalledEq(ExpectAligned)); in test_aligned() 69 assert(globalMemCounter.checkLastNewSizeEq(3 * sizeof(T))); in test_aligned() 70 assert(globalMemCounter.checkLastNewAlignEq(ExpectAligned ? Align : 0)); in test_aligned() 72 globalMemCounter.last_delete_align = 0; in test_aligned() [all …]
|
D | construct.pass.cpp | 61 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 64 globalMemCounter.last_new_size = 0; in main() 67 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 68 assert(globalMemCounter.checkLastNewSizeEq(3 * sizeof(int))); in main() 72 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 76 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 80 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 84 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 88 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 92 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/ |
D | swap.pass.cpp | 62 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 67 assert(globalMemCounter.checkOutstandingNewEq(2)); in main() 72 assert(globalMemCounter.checkOutstandingNewEq(2)); in main() 77 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 82 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 87 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 92 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 97 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 102 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 107 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
D | copy_move.pass.cpp | 56 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 60 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 65 assert(globalMemCounter.checkOutstandingNewEq(2)); in main() 70 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 73 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 77 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 81 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 84 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 88 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 94 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() [all …]
|
D | alloc_F.pass.cpp | 43 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject() 47 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject() 50 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_FunctionObject() 56 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject() 63 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 66 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 68 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 74 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 80 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass() 83 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass() [all …]
|
D | alloc_function.pass.cpp | 31 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject() 36 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_FunctionObject() 43 assert(globalMemCounter.checkOutstandingNewEq(2)); in test_FunctionObject() 49 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FunctionObject() 55 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 60 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 66 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 71 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_FreeFunction() 77 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass() 82 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_MemFunClass() [all …]
|
D | copy_assign.pass.cpp | 53 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 57 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 63 assert(globalMemCounter.checkOutstandingNewEq(2)); in main() 68 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 71 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 76 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 80 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 83 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 88 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 121 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() [all …]
|
D | F.pass.cpp | 66 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 70 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 75 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 78 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 82 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 86 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 93 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
D | F_assign.pass.cpp | 69 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 74 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 79 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 83 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 87 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 92 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 100 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
D | nullptr_t_assign.pass.cpp | 52 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 56 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 60 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 65 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 69 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
D | alloc_rfunction.pass.cpp | 60 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 64 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 69 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 75 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/ |
D | swap.pass.cpp | 63 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 71 assert(globalMemCounter.checkOutstandingNewEq(2)); in main() 76 assert(globalMemCounter.checkOutstandingNewEq(2)); in main() 81 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 89 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 94 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 99 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 107 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 112 assert(globalMemCounter.checkOutstandingNewEq(1)); in main() 117 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() [all …]
|
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/ |
D | ctor.pass.cpp | 35 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main() 37 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 42 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main() 44 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 49 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main() 51 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 56 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main() 58 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
/external/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/ |
D | dtor.pass.cpp | 25 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main() 27 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main() 31 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main() 33 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main() 37 assert(globalMemCounter.checkDeleteArrayCalledEq(0)); in main() 39 assert(globalMemCounter.checkDeleteArrayCalledEq(1)); in main()
|
/external/libcxx/test/std/localization/locales/locale/locale.cons/ |
D | default.pass.cpp | 62 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 64 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 66 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 68 ok = globalMemCounter.outstanding_new; in main() 70 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main() 72 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main() 74 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main() 76 assert(globalMemCounter.checkOutstandingNewEq(ok)); in main()
|
/external/libcxx/test/std/localization/locale.stdcvt/ |
D | codecvt_utf16.pass.cpp | 30 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 34 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 39 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main() 41 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
D | codecvt_utf8.pass.cpp | 30 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 34 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 39 assert(globalMemCounter.checkOutstandingNewNotEq(0)); in main() 41 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
/external/libcxx/test/std/experimental/memory/memory.resource.global/ |
D | new_delete_resource.pass.cpp | 83 globalMemCounter.reset(); in test_allocate_deallocate() 87 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_allocate_deallocate() 88 assert(globalMemCounter.checkLastNewSizeEq(50)); in test_allocate_deallocate() 91 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_allocate_deallocate() 92 assert(globalMemCounter.checkDeleteCalledEq(1)); in test_allocate_deallocate()
|
/external/libcxx/test/support/ |
D | count_new.hpp | 356 MemCounter &globalMemCounter = *getGlobalMemCounter(); variable 438 if (globalMemCounter.disable_allocations == true) m_disabled = false; in DisableAllocationGuard() 439 if (m_disabled) globalMemCounter.disableAllocations(); in DisableAllocationGuard() 443 if (m_disabled) globalMemCounter.enableAllocations(); in release() 461 m_new_count_on_init(globalMemCounter.new_called), in RequireAllocationGuard() 462 m_outstanding_new_on_init(globalMemCounter.outstanding_new), in RequireAllocationGuard() 471 assert(globalMemCounter.checkOutstandingNewEq(static_cast<int>(m_outstanding_new_on_init))); in ~RequireAllocationGuard() 473 assert(globalMemCounter.checkNewCalledEq(static_cast<int>(Expect)) || in ~RequireAllocationGuard() 474 … (!m_exactly && globalMemCounter.checkNewCalledGreaterThan(static_cast<int>(Expect)))); in ~RequireAllocationGuard()
|
/external/libcxx/test/std/utilities/any/any.class/any.assign/ |
D | copy.pass.cpp | 108 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self() 110 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self() 120 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self() 123 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self() 133 assert(globalMemCounter.checkOutstandingNewEq(1)); in test_copy_assign_self() 136 assert(globalMemCounter.checkOutstandingNewEq(0)); in test_copy_assign_self()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
D | make_shared.pass.cpp | 79 int nc = globalMemCounter.outstanding_new; in main() 84 assert(globalMemCounter.checkOutstandingNewEq(nc+1)); in main() 100 nc = globalMemCounter.outstanding_new; in main() 104 assert(globalMemCounter.checkOutstandingNewEq(nc+1)); in main()
|
/external/libcxx/test/std/containers/sequences/list/list.modifiers/ |
D | insert_iter_size_value.pass.cpp | 33 globalMemCounter.throw_after = 4; in test() 34 int save_count = globalMemCounter.outstanding_new; in test() 43 assert(globalMemCounter.checkOutstandingNewEq(save_count)); in test()
|
D | insert_iter_value.pass.cpp | 35 globalMemCounter.throw_after = 0; in test() 36 int save_count = globalMemCounter.outstanding_new; in test() 45 assert(globalMemCounter.checkOutstandingNewEq(save_count)); in test()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/ |
D | auto_ptr.pass.cpp | 64 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 69 globalMemCounter.throw_after = 0; in main() 96 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/ |
D | enable_shared_from_this.pass.cpp | 92 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 118 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 123 assert(globalMemCounter.checkOutstandingNewEq(0)); in main() 147 assert(globalMemCounter.checkOutstandingNewEq(0)); in main()
|