diff options
Diffstat (limited to 'test/pbdrv/main.cpp')
| -rw-r--r-- | test/pbdrv/main.cpp | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/test/pbdrv/main.cpp b/test/pbdrv/main.cpp new file mode 100644 index 0000000..de7e88a --- /dev/null +++ b/test/pbdrv/main.cpp @@ -0,0 +1,18 @@ +#include <gtest/gtest.h> + +#include "pb-write.h" + +TEST(pbdrv, write) { + +	pbdrv_buf_t buf = pbdrv_write_cmd_req_set_state({ +		.header = { .sender = 0xf0, }, +		.state = PB_GS_PLAYING, +	}); +	for (size_t i = 0; i < buf.size; i++) { +		printf("%02x ", buf.data[i] & 0xff); +	} +	printf("\n"); + +	ASSERT_TRUE(true); +} + |