From bc796810c81e620d28cb59f1733f8a7f60011425 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 9 Oct 2012 00:16:32 -0500 Subject: [PATCH] unit: Move test data for Get Inkey 1.5-1.6 --- unit/stk-test-data.h | 33 ++++++++++++++++++++++++++++ unit/test-stkutil.c | 52 -------------------------------------------- 2 files changed, 33 insertions(+), 52 deletions(-) diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h index 526cc2e7..41a336ce 100644 --- a/unit/stk-test-data.h +++ b/unit/stk-test-data.h @@ -334,3 +334,36 @@ static const unsigned char get_inkey_141[] = { static const unsigned char get_inkey_response_141[] = { 0x81, 0x03, 0x01, 0x22, 0x00, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x10, }; + +static const unsigned char get_inkey_151[] = { + 0xD0, 0x15, 0x81, 0x03, 0x01, 0x22, 0x01, 0x82, 0x02, 0x81, 0x82, 0x8D, + 0x0A, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x22, 0x71, 0x22, +}; + +static const unsigned char get_inkey_response_151[] = { + 0x81, 0x03, 0x01, 0x22, 0x01, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, + 0x8d, 0x02, 0x04, 0x71, +}; + +static const unsigned char get_inkey_161[] = { + 0xD0, 0x81, 0xAD, 0x81, 0x03, 0x01, 0x22, 0x01, 0x82, 0x02, 0x81, 0x82, + 0x8D, 0x81, 0xA1, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x22, 0x78, + 0x22, 0x2E, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6F, 0x6D, 0x6D, + 0x61, 0x6E, 0x64, 0x20, 0x69, 0x6E, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, + 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4D, 0x45, 0x20, 0x74, 0x6F, 0x20, + 0x64, 0x69, 0x73, 0x70, 0x6C, 0x61, 0x79, 0x20, 0x74, 0x65, 0x78, 0x74, + 0x2C, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x74, 0x6F, 0x20, 0x65, 0x78, 0x70, + 0x65, 0x63, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, + 0x20, 0x74, 0x6F, 0x20, 0x65, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x61, 0x20, + 0x73, 0x69, 0x6E, 0x67, 0x6C, 0x65, 0x20, 0x63, 0x68, 0x61, 0x72, 0x61, + 0x63, 0x74, 0x65, 0x72, 0x2E, 0x20, 0x41, 0x6E, 0x79, 0x20, 0x72, 0x65, + 0x73, 0x70, 0x6F, 0x6E, 0x73, 0x65, 0x20, 0x65, 0x6E, 0x74, 0x65, 0x72, + 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, + 0x65, 0x72, 0x20, 0x73, 0x68, 0x61, 0x6C, 0x6C, 0x20, 0x62, 0x65, 0x20, + 0x70, 0x61, 0x73, 0x73, 0x65, 0x64, 0x20, 0x74, +}; + +static const unsigned char get_inkey_response_161[] = { + 0x81, 0x03, 0x01, 0x22, 0x01, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, + 0x8d, 0x02, 0x04, 0x78, +}; diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index 5b2fe366..9564a356 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -891,48 +891,6 @@ struct get_inkey_test { char *html; }; -static unsigned char get_inkey_151[] = { 0xD0, 0x15, 0x81, 0x03, 0x01, 0x22, - 0x01, 0x82, 0x02, 0x81, 0x82, - 0x8D, 0x0A, 0x04, 0x45, 0x6E, - 0x74, 0x65, 0x72, 0x20, 0x22, - 0x71, 0x22 }; - -static unsigned char get_inkey_161[] = { 0xD0, 0x81, 0xAD, 0x81, 0x03, 0x01, - 0x22, 0x01, 0x82, 0x02, 0x81, - 0x82, 0x8D, 0x81, 0xA1, 0x04, - 0x45, 0x6E, 0x74, 0x65, 0x72, - 0x20, 0x22, 0x78, 0x22, 0x2E, - 0x20, 0x54, 0x68, 0x69, 0x73, - 0x20, 0x63, 0x6F, 0x6D, 0x6D, - 0x61, 0x6E, 0x64, 0x20, 0x69, - 0x6E, 0x73, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x73, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x4D, 0x45, - 0x20, 0x74, 0x6F, 0x20, 0x64, - 0x69, 0x73, 0x70, 0x6C, 0x61, - 0x79, 0x20, 0x74, 0x65, 0x78, - 0x74, 0x2C, 0x20, 0x61, 0x6E, - 0x64, 0x20, 0x74, 0x6F, 0x20, - 0x65, 0x78, 0x70, 0x65, 0x63, - 0x74, 0x20, 0x74, 0x68, 0x65, - 0x20, 0x75, 0x73, 0x65, 0x72, - 0x20, 0x74, 0x6F, 0x20, 0x65, - 0x6E, 0x74, 0x65, 0x72, 0x20, - 0x61, 0x20, 0x73, 0x69, 0x6E, - 0x67, 0x6C, 0x65, 0x20, 0x63, - 0x68, 0x61, 0x72, 0x61, 0x63, - 0x74, 0x65, 0x72, 0x2E, 0x20, - 0x41, 0x6E, 0x79, 0x20, 0x72, - 0x65, 0x73, 0x70, 0x6F, 0x6E, - 0x73, 0x65, 0x20, 0x65, 0x6E, - 0x74, 0x65, 0x72, 0x65, 0x64, - 0x20, 0x62, 0x79, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x75, 0x73, - 0x65, 0x72, 0x20, 0x73, 0x68, - 0x61, 0x6C, 0x6C, 0x20, 0x62, - 0x65, 0x20, 0x70, 0x61, 0x73, - 0x73, 0x65, 0x64, 0x20, 0x74 }; - static unsigned char get_inkey_211[] = { 0xD0, 0x16, 0x81, 0x03, 0x01, 0x22, 0x00, 0x82, 0x02, 0x81, 0x82, 0x8D, 0x0B, 0x04, 0x3C, 0x54, @@ -17649,11 +17607,6 @@ static const struct terminal_response_test get_inkey_response_data_141 = { }, }; -static const unsigned char get_inkey_response_151[] = { - 0x81, 0x03, 0x01, 0x22, 0x01, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, 0x8d, 0x02, 0x04, 0x71, -}; - static const struct terminal_response_test get_inkey_response_data_151 = { .pdu = get_inkey_response_151, .pdu_len = sizeof(get_inkey_response_151), @@ -17674,11 +17627,6 @@ static const struct terminal_response_test get_inkey_response_data_151 = { }, }; -static const unsigned char get_inkey_response_161[] = { - 0x81, 0x03, 0x01, 0x22, 0x01, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, 0x8d, 0x02, 0x04, 0x78, -}; - static const struct terminal_response_test get_inkey_response_data_161 = { .pdu = get_inkey_response_161, .pdu_len = sizeof(get_inkey_response_161),