Diff between 2022997b202691d37c64a86e397b679495ed5fcc and 7921f7337917cfcd0f275838e957495475df3d99

Changed Files

File Additions Deletions Status
unit/test-eir.c +16 -0 modified

Full Patch

diff --git a/unit/test-eir.c b/unit/test-eir.c
index c785517..7c9b5ba 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);