0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
static const struct test_data ipadmini_test = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
static const struct test_data fuelband_test = {
.name_complete = TRUE,
};
+static const unsigned char bluesc_data[] = {
+ 0x02, 0x01, 0x06, 0x03, 0x02, 0x16, 0x18, 0x12,
+ 0x09, 0x57, 0x61, 0x68, 0x6f, 0x6f, 0x20, 0x42,
+ 0x6c, 0x75, 0x65, 0x53, 0x43, 0x20, 0x76, 0x31,
+ 0x2e, 0x34,
+};
+
+static const struct test_data bluesc_test = {
+ .eir_data = bluesc_data,
+ .eir_size = sizeof(bluesc_data),
+ .flags = 0x06,
+ .name = "Wahoo BlueSC v1.4",
+ .name_complete = TRUE,
+};
+
static void test_basic(void)
{
struct eir_data data;
g_test_add_data_func("/eir/iphone5", &iphone5_test, test_parsing);
g_test_add_data_func("/eir/ipadmini", &ipadmini_test, test_parsing);
g_test_add_data_func("/eir/fuelband", &fuelband_test, test_parsing);
+ g_test_add_data_func("/ad/bluesc", &bluesc_test, test_parsing);
return g_test_run();
}