|
Pigweed
|
#include <test_harness.h>
Additional Inherited Members | |
Public Member Functions inherited from pw::allocator::test::TestHarnessGeneric | |
| virtual | ~TestHarnessGeneric ()=default |
| void | GenerateRequests (random::RandomGenerator &prng, size_t max_size, size_t num_requests) |
| void | GenerateRequest (random::RandomGenerator &prng, size_t max_size) |
| void | HandleRequests (const Vector< Request > &requests) |
| void | HandleRequest (const Request &request) |
| void | Reset () |
| Deallocates any pointers stored in the vector of allocated pointers. | |
Protected Member Functions inherited from pw::allocator::test::TestHarnessGeneric | |
| constexpr | TestHarnessGeneric (Vector< Allocation > &allocations) |
Associates an Allocator with a vector to store allocated pointers.
This class differes from its base class only in that it uses its template parameter to explicitly size the vector used to store allocated pointers.
This class does NOT implement WithAllocationsGeneric::Init. It must be extended further with a method that provides an initialized allocator.
For example, one create a fuzzer for MyAllocator that verifies it never crashes by adding the following class, function, and macro: