From 89176f576388a27893d4d8fdb6717a9b804cfff8 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 16 Jan 2013 10:50:17 -0800 Subject: [PATCH] unit: Add advertising data from MIO Alpha heartrate watch for testing --- unit/test-eir.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/unit/test-eir.c b/unit/test-eir.c index 6f816a760..c785517bd 100644 --- a/unit/test-eir.c +++ b/unit/test-eir.c @@ -220,6 +220,19 @@ static const struct test_data bluesc_test = { .name_complete = TRUE, }; +static const unsigned char mio_alpha_data[] = { + 0x02, 0x01, 0x06, 0x03, 0x02, 0x0d, 0x18, 0x06, + 0x09, 0x41, 0x4c, 0x50, 0x48, 0x41, +}; + +static const struct test_data mio_alpha_test = { + .eir_data = mio_alpha_data, + .eir_size = sizeof(mio_alpha_data), + .flags = 0x06, + .name = "ALPHA", + .name_complete = TRUE, +}; + static const unsigned char cookoo_data[] = { 0x02, 0x01, 0x05, 0x05, 0x02, 0x02, 0x18, 0x0a, 0x18, 0x0d, 0x09, 0x43, 0x4f, 0x4f, 0x4b, 0x4f, @@ -318,6 +331,7 @@ int main(int argc, char *argv[]) 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); + g_test_add_data_func("/ad/mioalpha", &mio_alpha_test, test_parsing); g_test_add_data_func("/ad/cookoo", &cookoo_test, test_parsing); g_test_add_data_func("/ad/citizen1", &citizen_adv_test, test_parsing); g_test_add_data_func("/ad/citizen2", &citizen_scan_test, test_parsing); -- 2.47.3