blob: 31e5d8de819d5c49225696fd01651fced8b9991b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <gtest/gtest.h>
#include "pb-write.h"
TEST(pbdrv, write_cmd_req_set_state) {
pbdrv_buf_t buf = pbdrv_write_cmd_req_set_state({
.header = { .sender = 0xf0, },
.state = PB_GS_PLAYING,
});
ASSERT_NE(buf.data, nullptr);
ASSERT_GE(buf.size, 0);
}
|