From 03a619d7adfb0031ed39bf40d58fffa5005f4f4f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 18 Oct 2012 13:45:49 -0500 Subject: unit: Move GetInput 3.1-3.2 test data --- unit/stk-test-data.h | 31 +++++++++++++++++++++++++++++++ unit/test-stkutil.c | 49 ------------------------------------------------- 2 files changed, 31 insertions(+), 49 deletions(-) (limited to 'unit') diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h index 8e9bfa13..9bbf8515 100644 --- a/unit/stk-test-data.h +++ b/unit/stk-test-data.h @@ -767,3 +767,34 @@ static const unsigned char get_input_211[] = { static const unsigned char get_input_response_211[] = { 0x81, 0x03, 0x01, 0x23, 0x00, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x12, }; + +static const unsigned char get_input_311[] = { + 0xD0, 0x28, 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x81, 0x82, 0x8D, + 0x19, 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, 0x04, 0x12, + 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, 0x04, 0x22, + 0x04, 0x15, 0x91, 0x02, 0x05, 0x05 +}; + +static const unsigned char get_input_response_311[] = { + 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, + 0x8d, 0x06, 0x04, 0x48, 0x45, 0x4c, 0x4c, 0x4f, +}; + +static const unsigned char get_input_321[] = { + 0xD0, 0x81, 0x9D, 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x81, 0x82, + 0x8D, 0x81, 0x8D, 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, + 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, + 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, + 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, + 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, + 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, + 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, + 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, + 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, + 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, + 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, + 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, + 0x91, 0x02, 0x05, 0x05 +}; + +#define get_input_response_321 get_input_response_311 diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index 608fbad4..05e43ef8 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -1553,49 +1553,6 @@ struct get_input_test { char *html; }; -static unsigned char get_input_311[] = { 0xD0, 0x28, 0x81, 0x03, 0x01, 0x23, - 0x01, 0x82, 0x02, 0x81, 0x82, - 0x8D, 0x19, 0x08, 0x04, 0x17, - 0x04, 0x14, 0x04, 0x20, 0x04, - 0x10, 0x04, 0x12, 0x04, 0x21, - 0x04, 0x22, 0x04, 0x12, 0x04, - 0x23, 0x04, 0x19, 0x04, 0x22, - 0x04, 0x15, 0x91, 0x02, 0x05, - 0x05 }; - -static unsigned char get_input_321[] = { 0xD0, 0x81, 0x9D, 0x81, 0x03, 0x01, - 0x23, 0x01, 0x82, 0x02, 0x81, - 0x82, 0x8D, 0x81, 0x8D, 0x08, - 0x04, 0x17, 0x04, 0x14, 0x04, - 0x20, 0x04, 0x10, 0x04, 0x12, - 0x04, 0x21, 0x04, 0x22, 0x04, - 0x12, 0x04, 0x23, 0x04, 0x19, - 0x04, 0x22, 0x04, 0x15, 0x04, - 0x17, 0x04, 0x14, 0x04, 0x20, - 0x04, 0x10, 0x04, 0x12, 0x04, - 0x21, 0x04, 0x22, 0x04, 0x12, - 0x04, 0x23, 0x04, 0x19, 0x04, - 0x22, 0x04, 0x15, 0x04, 0x17, - 0x04, 0x14, 0x04, 0x20, 0x04, - 0x10, 0x04, 0x12, 0x04, 0x21, - 0x04, 0x22, 0x04, 0x12, 0x04, - 0x23, 0x04, 0x19, 0x04, 0x22, - 0x04, 0x15, 0x04, 0x17, 0x04, - 0x14, 0x04, 0x20, 0x04, 0x10, - 0x04, 0x12, 0x04, 0x21, 0x04, - 0x22, 0x04, 0x12, 0x04, 0x23, - 0x04, 0x19, 0x04, 0x22, 0x04, - 0x15, 0x04, 0x17, 0x04, 0x14, - 0x04, 0x20, 0x04, 0x10, 0x04, - 0x12, 0x04, 0x21, 0x04, 0x22, - 0x04, 0x12, 0x04, 0x23, 0x04, - 0x19, 0x04, 0x22, 0x04, 0x15, - 0x04, 0x17, 0x04, 0x14, 0x04, - 0x20, 0x04, 0x10, 0x04, 0x12, - 0x04, 0x21, 0x04, 0x22, 0x04, - 0x12, 0x04, 0x23, 0x04, 0x19, - 0x91, 0x02, 0x05, 0x05 }; - static unsigned char get_input_411[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x81, 0x82, 0x8D, 0x0C, 0x04, 0x45, 0x6E, @@ -17716,12 +17673,6 @@ static const struct terminal_response_test get_input_response_data_211 = { }, }; -static const unsigned char get_input_response_311[] = { - 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, 0x8d, 0x06, 0x04, 0x48, - 0x45, 0x4c, 0x4c, 0x4f, -}; - static const struct terminal_response_test get_input_response_data_311 = { .pdu = get_input_response_311, .pdu_len = sizeof(get_input_response_311), -- cgit v1.2.3