intermediate update for test

This commit is contained in:
mila@ringwald.ch 2014-02-28 21:44:17 +00:00
parent 1fb05f9241
commit 44e6dbc206

View File

@ -16,13 +16,26 @@
#include "CppUTest/TestHarness.h"
#include "CppUTest/CommandLineTestRunner.h"
static uint8_t ad_data[] = {0x02, 0x01, 0x05, 0x03, 0x02, 0xF0, 0xFF};
static uint8_t ad_data[] = {0x02, 0x01, 0x05, 0x03, 0x02, 0xF0, 0xFF};
static uint8_t ad_uuid16[] = {0x02, 0x04, 0x78, 0x56, 0x34, 0x12,
0x02, 0x04, 0xf0, 0xde, 0xbc, 0x9a};
static uint8_t uuid16[] = { 0x12, 0x34,
0x56, 0x78,
0x9a, 0xbc,
0xde, 0xf0 };
static uint8_t ad_uuid128[] = {0x06, 0x10, 0xf0, 0xde, 0xbc, 0x9a, 0x78, 0x56, 0x34, 0x12, 0xf0, 0xde, 0xbc, 0x9a, 0x78, 0x56, 0x34, 0x12};
static uint8_t uuid128[] = {0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0, 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0} ;
TEST_GROUP(ADParser){
};
TEST(ADParser, Test){
TEST(ADParser, TestDataParsing){
ad_context_t context;
uint8_t expected_len[] = {1, 2};
uint8_t expected_type[] = {0x01, 0x02};
@ -47,6 +60,9 @@ TEST(ADParser, Test){
}
}
TEST(ADParser, TestHasUUID){
}
int main (int argc, const char * argv[]){
return CommandLineTestRunner::RunAllTests(argc, argv);