mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-29 12:32:54 +00:00
test/ringbuffer: update test
This commit is contained in:
parent
2c36c79169
commit
d43fe610a0
@ -1,9 +1,14 @@
|
|||||||
#include "CppUTest/TestHarness.h"
|
#include "CppUTest/TestHarness.h"
|
||||||
#include "CppUTest/CommandLineTestRunner.h"
|
#include "CppUTest/CommandLineTestRunner.h"
|
||||||
#include "btstack_ring_buffer.h"
|
#include "btstack_ring_buffer.h"
|
||||||
|
#include "btstack_util.h"
|
||||||
|
|
||||||
static uint8_t storage[10];
|
static uint8_t storage[10];
|
||||||
|
|
||||||
|
uint32_t btstack_min(uint32_t a, uint32_t b){
|
||||||
|
return a < b ? a : b;
|
||||||
|
}
|
||||||
|
|
||||||
TEST_GROUP(RingBuffer){
|
TEST_GROUP(RingBuffer){
|
||||||
btstack_ring_buffer_t ring_buffer;
|
btstack_ring_buffer_t ring_buffer;
|
||||||
int storage_size;
|
int storage_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user