diff options
Diffstat (limited to 'test/pbdrv/msg.cpp')
-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); } |