commit | 74ed509bc15e65bc898284b697cacde6684c8288 | [log] [tgz] |
---|---|---|
author | aarongreen <aarongreen@google.com> | Wed Nov 08 19:21:36 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 08 19:21:36 2023 +0000 |
tree | d5d96f74042fc0385245f98ea2333281bb75d8d7 | |
parent | 87636efd044bee24f360c979153abc7df28a7690 [diff] |
pw_allocator: Refactor test support and example allocator This CL does the following: * It move the SimpleAllocator previously described in Block's class-level comments to an actual source file, and adds a test for it. The class is now included directly into the module docs. * It refactors the FakeAllocator to use SimpleAllocator and renames it to AllocatorForTest. It also moves this from pw_allocator_private/ to public/pw_allocator/, as these utilities may be useful for testing custom allocators provided by downstream projects. * It updates the callers of FakeAllocator to use AllocatorForTest. Bug: b/306686936 Change-Id: I41953e3b64fa831bd23418496ffa683917944b3f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/177653 Commit-Queue: Aaron Green <aarongreen@google.com> Reviewed-by: Taylor Cramer <cramertj@google.com> Reviewed-by: Keir Mierle <keir@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.