From 7921f7337917cfcd0f275838e957495475df3d99 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 23 Jan 2013 15:24:23 -0800 Subject: [PATCH] unit: Add advertising data from Wahoo scale for testing --- unit/test-eir.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/unit/test-eir.c b/unit/test-eir.c index c785517bd..7c9b5baa4 100644 --- a/unit/test-eir.c +++ b/unit/test-eir.c @@ -220,6 +220,21 @@ static const struct test_data bluesc_test = { .name_complete = TRUE, }; +static const unsigned char wahoo_scale_data[] = { + 0x02, 0x01, 0x06, 0x03, 0x02, 0x01, 0x19, 0x11, + 0x09, 0x57, 0x61, 0x68, 0x6f, 0x6f, 0x20, 0x53, + 0x63, 0x61, 0x6c, 0x65, 0x20, 0x76, 0x31, 0x2e, + 0x33, 0x05, 0xff, 0x00, 0x00, 0x00, 0x9c, +}; + +static const struct test_data wahoo_scale_test = { + .eir_data = wahoo_scale_data, + .eir_size = sizeof(wahoo_scale_data), + .flags = 0x06, + .name = "Wahoo Scale v1.3", + .name_complete = TRUE, +}; + static const unsigned char mio_alpha_data[] = { 0x02, 0x01, 0x06, 0x03, 0x02, 0x0d, 0x18, 0x06, 0x09, 0x41, 0x4c, 0x50, 0x48, 0x41, @@ -331,6 +346,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/wahooscale", &wahoo_scale_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); -- 2.47.3