From c6158d739ab04ffe33256c66cdaecabd9b3ec769 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 31 Oct 2012 11:55:24 -0500 Subject: unit: Move PlayTone 2.1 test data --- unit/stk-test-data.h | 25 +++++++++++++++++++++++++ unit/test-stkutil.c | 27 --------------------------- 2 files changed, 25 insertions(+), 27 deletions(-) (limited to 'unit') diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h index 160bc1a7..a8a8e2f5 100644 --- a/unit/stk-test-data.h +++ b/unit/stk-test-data.h @@ -1243,3 +1243,28 @@ static const unsigned char play_tone_1115[] = { }; #define play_tone_response_1115 play_tone_response_111 + +static const unsigned char play_tone_211[] = { + 0xD0, 0x2B, 0x81, 0x03, 0x01, 0x20, 0x00, 0x82, 0x02, 0x81, 0x03, 0x85, + 0x19, 0x80, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, 0x04, 0x12, + 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, 0x04, 0x22, + 0x04, 0x15, 0x8E, 0x01, 0x11, 0x84, 0x02, 0x01, 0x01 +}; + +#define play_tone_response_211 play_tone_response_111 + +static const unsigned char play_tone_212[] = { + 0xD0, 0x21, 0x81, 0x03, 0x01, 0x20, 0x00, 0x82, 0x02, 0x81, 0x03, 0x85, + 0x0F, 0x81, 0x0C, 0x08, 0x97, 0x94, 0xA0, 0x90, 0x92, 0xA1, 0xA2, 0x92, + 0xA3, 0x99, 0xA2, 0x95, 0x8E, 0x01, 0x11, 0x84, 0x02, 0x01, 0x01 +}; + +#define play_tone_response_212 play_tone_response_111 + +static const unsigned char play_tone_213[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x20, 0x00, 0x82, 0x02, 0x81, 0x03, 0x85, + 0x10, 0x82, 0x0C, 0x04, 0x10, 0x87, 0x84, 0x90, 0x80, 0x82, 0x91, 0x92, + 0x82, 0x93, 0x89, 0x92, 0x85, 0x8E, 0x01, 0x11, 0x84, 0x02, 0x01, 0x01 +}; + +#define play_tone_response_213 play_tone_response_111 diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index f2635040..1fe72921 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -2509,33 +2509,6 @@ struct play_tone_test { char *html; }; -static unsigned char play_tone_211[] = { 0xD0, 0x2B, 0x81, 0x03, 0x01, 0x20, - 0x00, 0x82, 0x02, 0x81, 0x03, - 0x85, 0x19, 0x80, 0x04, 0x17, - 0x04, 0x14, 0x04, 0x20, 0x04, - 0x10, 0x04, 0x12, 0x04, 0x21, - 0x04, 0x22, 0x04, 0x12, 0x04, - 0x23, 0x04, 0x19, 0x04, 0x22, - 0x04, 0x15, 0x8E, 0x01, 0x11, - 0x84, 0x02, 0x01, 0x01 }; - - -static unsigned char play_tone_212[] = { 0xD0, 0x21, 0x81, 0x03, 0x01, 0x20, - 0x00, 0x82, 0x02, 0x81, 0x03, - 0x85, 0x0F, 0x81, 0x0C, 0x08, - 0x97, 0x94, 0xA0, 0x90, 0x92, - 0xA1, 0xA2, 0x92, 0xA3, 0x99, - 0xA2, 0x95, 0x8E, 0x01, 0x11, - 0x84, 0x02, 0x01, 0x01 }; - -static unsigned char play_tone_213[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x20, - 0x00, 0x82, 0x02, 0x81, 0x03, - 0x85, 0x10, 0x82, 0x0C, 0x04, - 0x10, 0x87, 0x84, 0x90, 0x80, - 0x82, 0x91, 0x92, 0x82, 0x93, - 0x89, 0x92, 0x85, 0x8E, 0x01, - 0x11, 0x84, 0x02, 0x01, 0x01 }; - static unsigned char play_tone_311[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x20, 0x00, 0x82, 0x02, 0x81, 0x03, 0x85, 0x0C, 0x3C, 0x42, 0x41, -- cgit v1.2.3