commit | b5aeefc41df63c6a9e22eebb48bf230048c07d0c | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Thu Sep 23 18:50:12 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 14 19:13:57 2021 +0000 |
tree | 28c6497a09c0418dd6ffa40f38a674dea8c0d884 | |
parent | b4c6bb5533f6b7586a9abcf578301e2ab91b6af7 [diff] |
pw_rpc: Rework the FakeChannelOutput classes - Update Raw/NanopbFakeChannelOutput so it can be used for both client and service testing. Record all packets sent and support iterating over payloads by RPC. Store payloads in a single buffer rather than a list of fixed-size buffers to support different payload sizes with less memory. - Allow encoding/decoding individual proto methods with NanopbSerde. - Update tests to use the new FakeChannelOutput API. - Adapt the test method contexts to use the new FakeChannelOutput. A test server class with improved functionality (and no macros) will be created in the future. Requires: pigweed-internal:16580 Change-Id: I10eb11cdf8e7a3ee656d2a00d5a6517bc0179281 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/64962 Commit-Queue: Wyatt Hepler <hepler@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/