|
theCore C++ embedded framework
|
#include <ecl/pool.hpp>#include <sstream>#include <algorithm>#include <bitset>#include <cstdlib>#include <ctime>#include <map>#include <iostream>#include <CppUTest/TestHarness.h>#include <CppUTestExt/MockSupport.h>
Data Structures | |
| struct | exactly_block |
| struct | more_than_block |
| struct | less_than_block |
Macros | |
| #define | POOL_ALLOC_TEST_PRINT_STATS |
| #define | POOL_ALLOC_TEST |
Functions | |
| struct exactly_block | __attribute__ ((packed)) |
| static void | check_if_empty_pool_is_empty () |
| TEST_GROUP (pool_unit) | |
| template<typename T > | |
| static void | test_alloc_dealloc_with_type (size_t n, size_t blk_cnt) |
| TEST (pool_unit, multiple_alloc_dealloc_of_block_type) | |
| TEST (pool_unit, too_big_allocation) | |
| TEST (pool_unit, depleted_pool) | |
| TEST (pool_unit, single_alloc_dealloc) | |
| TEST (pool_unit, randomly_allocate_and_deallocate) | |
Variables | |
| static constexpr auto | block_size = 16 |
| static constexpr auto | blocks = 100 |
| static ecl::pool_base * | test_pool |
| static ecl::pool< block_size, blocks > * | real_pool |
| char | data [block_size] |
| #define POOL_ALLOC_TEST_PRINT_STATS |
| #define POOL_ALLOC_TEST |
| struct exactly_block __attribute__ | ( | (packed) | ) |
|
static |
| TEST_GROUP | ( | pool_unit | ) |

|
static |

| TEST | ( | pool_unit | , |
| multiple_alloc_dealloc_of_block_type | |||
| ) |
| TEST | ( | pool_unit | , |
| too_big_allocation | |||
| ) |

| TEST | ( | pool_unit | , |
| depleted_pool | |||
| ) |

| TEST | ( | pool_unit | , |
| single_alloc_dealloc | |||
| ) |
| TEST | ( | pool_unit | , |
| randomly_allocate_and_deallocate | |||
| ) |

|
static |
|
static |
|
static |
|
static |
| char data |