ReactOS 0.4.16-dev-109-gf4cb10f
|
#include <nc_alloc.h>
Static Public Member Functions | |
static void | ReportSuccess (int) |
static void | TrackAllocations (bool) |
static bool | TrackingEnabled () |
static void | BeginLeakDetection () |
static bool | LeakDetectionEnabled () |
static bool | ReportLeaked () |
static void | TurnOffExceptions () |
static void | SetFailureCountdown (long n) |
static void | CancelFailureCountdown () |
static void | maybe_fail (long) |
static void | SetCurrentTestCategory (const char *str) |
static void | SetCurrentContainer (const char *str) |
static void | SetCurrentTestName (const char *str) |
static void | SetVerbose (bool val) |
Private Types | |
enum | { kNotInExceptionTest = -1 } |
Static Private Member Functions | |
static void | ClearAllocationSet () |
static void | EndLeakDetection () |
static void | PrintTestName (bool err=false) |
static long & | Failure_threshold () |
Static Private Attributes | |
static long | possible_failure_count = 0 |
static const char * | current_test = "<unknown>" |
static const char * | current_test_category = "no category" |
static const char * | current_container = 0 |
static bool | nc_verbose = true |
static bool | never_fail = false |
static bool | track_allocations = false |
static bool | leak_detection_enabled = false |
Definition at line 34 of file nc_alloc.h.
|
private |
Enumerator | |
---|---|
kNotInExceptionTest |
Definition at line 94 of file nc_alloc.h.
|
inlinestatic |
Definition at line 147 of file nc_alloc.h.
Referenced by ConstCheck(), StrongCheck(), and WeakCheck().
|
inlinestatic |
Definition at line 143 of file nc_alloc.h.
Referenced by assert_sorted_version(), ConstCheck(), test_insert_one< C >::operator()(), test_insert_n< C >::operator()(), test_insert_value< C >::operator()(), test_insert_noresize< C >::operator()(), test_insert_range< C, Iter >::operator()(), test_push_back< C >::operator()(), test_copy_construct< T >::operator()(), test_construct_pointer_range< T >::operator()(), test_construct_iter_range< T >::operator()(), test_construct_iter_range_n< T >::operator()(), test_stable_partition::operator()(), test_assign_op< T >::operator()(), test_list_sort::operator()(), StrongCheck(), and WeakCheck().
|
staticprivate |
Definition at line 281 of file nc_alloc.cpp.
Referenced by BeginLeakDetection().
|
inlinestaticprivate |
Definition at line 158 of file nc_alloc.h.
Referenced by ReportLeaked().
|
staticprivate |
Definition at line 333 of file nc_alloc.cpp.
Referenced by CancelFailureCountdown(), maybe_fail(), and SetFailureCountdown().
|
inlinestatic |
Definition at line 154 of file nc_alloc.h.
Referenced by operator delete(), and OperatorNew().
Definition at line 49 of file nc_alloc.cpp.
Referenced by simulate_constructor(), and simulate_possible_failure().
Definition at line 318 of file nc_alloc.cpp.
Referenced by ReportLeaked(), and SetCurrentTestCategory().
|
static |
Definition at line 290 of file nc_alloc.cpp.
Referenced by ConstCheck(), StrongCheck(), and WeakCheck().
Definition at line 328 of file nc_alloc.cpp.
Referenced by ConstCheck(), StrongCheck(), and WeakCheck().
Definition at line 168 of file nc_alloc.h.
Referenced by main().
Definition at line 162 of file nc_alloc.h.
Referenced by ConstCheck(), StrongCheck(), and WeakCheck().
Definition at line 172 of file nc_alloc.h.
Referenced by test_assign_op< T >::test_assign_op(), test_BitVector_reserve::test_BitVector_reserve(), test_construct_iter_range< T >::test_construct_iter_range(), test_construct_iter_range_n< T >::test_construct_iter_range_n(), test_construct_n< T >::test_construct_n(), test_construct_n_instance< T >::test_construct_n_instance(), test_construct_pointer_range< T >::test_construct_pointer_range(), test_copy_construct< T >::test_copy_construct(), test_default_construct< T >::test_default_construct(), test_hash_resize< T >::test_hash_resize(), test_inplace_merge_1::test_inplace_merge_1(), test_inplace_merge_2::test_inplace_merge_2(), test_insert_n< C >::test_insert_n(), test_insert_noresize< C >::test_insert_noresize(), test_insert_one< C >::test_insert_one(), test_insert_range< C, Iter >::test_insert_range(), test_insert_value< C >::test_insert_value(), test_list_sort::test_list_sort(), test_push_back< C >::test_push_back(), test_push_front< C >::test_push_front(), test_reserve::test_reserve(), test_slist_sort::test_slist_sort(), test_stable_partition::test_stable_partition(), test_stable_sort_1::test_stable_sort_1(), test_stable_sort_2::test_stable_sort_2(), test_uninitialized_copy::test_uninitialized_copy(), test_uninitialized_fill::test_uninitialized_fill(), and test_uninitialized_fill_n::test_uninitialized_fill_n().
Definition at line 138 of file nc_alloc.h.
Referenced by ConstCheck(), StrongCheck(), and WeakCheck().
Definition at line 176 of file nc_alloc.h.
Referenced by main().
Definition at line 130 of file nc_alloc.h.
Referenced by main().
|
inlinestatic |
Definition at line 134 of file nc_alloc.h.
Referenced by operator delete(), and OperatorNew().
|
inlinestatic |
Definition at line 104 of file nc_alloc.h.
Referenced by PrintTestName(), and SetCurrentContainer().
Definition at line 102 of file nc_alloc.h.
Referenced by PrintTestName(), and SetCurrentTestName().
Definition at line 103 of file nc_alloc.h.
Referenced by PrintTestName(), and SetCurrentTestCategory().
Definition at line 108 of file nc_alloc.h.
Referenced by BeginLeakDetection(), EndLeakDetection(), and LeakDetectionEnabled().
Definition at line 105 of file nc_alloc.h.
Referenced by ReportSuccess(), SetCurrentTestCategory(), and SetVerbose().
Definition at line 106 of file nc_alloc.h.
Referenced by maybe_fail(), and TurnOffExceptions().
|
staticprivate |
Definition at line 101 of file nc_alloc.h.
Referenced by maybe_fail(), and SetFailureCountdown().
Definition at line 107 of file nc_alloc.h.
Referenced by TrackAllocations(), and TrackingEnabled().