diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 12:16:36 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 12:16:36 +0200 |
commit | ef162ca3445d9adb000d7dfd1b68b181ef958926 (patch) | |
tree | 25c62f409323c0fa6be7c9034bc04ee2bb18ef50 /test | |
parent | 2cf895332ffd54ea1a43b090859943665709e420 (diff) |
clean up pbdrv naming
Diffstat (limited to 'test')
-rw-r--r-- | test/pbdrv/msg.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/pbdrv/msg.cpp b/test/pbdrv/msg.cpp index 3d2b48d..320d6b3 100644 --- a/test/pbdrv/msg.cpp +++ b/test/pbdrv/msg.cpp @@ -2,7 +2,7 @@ #include "pb-msg.h" -TEST(pbdrv_msg_rw, cmd_req_read) { +TEST(pb_msg_rw, cmd_req_read) { pb_cmd_req_read_t content = { .propid = 2, }; @@ -11,13 +11,13 @@ TEST(pbdrv_msg_rw, cmd_req_read) { .sender = 0xff, .msg = &content, }; - pbdrv_buf_t buf = pbdrv_msg_write(&msg_write); + pb_buf_t buf = pb_msg_write(&msg_write); ASSERT_NE(buf.data, nullptr); ASSERT_GE(buf.size, 0); - pb_msg_t * msg_read = pbdrv_msg_read(&buf); - pbdrv_buf_free(&buf); + pb_msg_t * msg_read = pb_msg_read(&buf); + pb_buf_free(&buf); ASSERT_EQ(buf.data, nullptr); @@ -25,6 +25,6 @@ TEST(pbdrv_msg_rw, cmd_req_read) { EXPECT_EQ(msg_write.sender, msg_read->sender); EXPECT_EQ(((pb_cmd_req_read_t *) msg_write.msg)->propid, ((pb_cmd_req_read_t *) msg_read->msg)->propid); - pbdrv_msg_free(msg_read); + pb_msg_free(msg_read); } |