From 4e125b2d1042c8cce7b21a8fcc0ec35ee9381ea8 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 9 Oct 2012 11:00:09 -0500 Subject: [PATCH] unit: Move GetInkey 4.1 test data --- unit/stk-test-data.h | 10 ++++++++++ unit/test-stkutil.c | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h index c161f234..cd562a13 100644 --- a/unit/stk-test-data.h +++ b/unit/stk-test-data.h @@ -403,3 +403,13 @@ static const unsigned char get_inkey_321[] = { }; #define get_inkey_response_321 get_inkey_response_111 + +static const unsigned char get_inkey_411[] = { + 0xD0, 0x11, 0x81, 0x03, 0x01, 0x22, 0x03, 0x82, 0x02, 0x81, 0x82, 0x8D, + 0x06, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72 +}; + +static const unsigned char get_inkey_response_411[] = { + 0x81, 0x03, 0x01, 0x22, 0x03, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, + 0x8d, 0x03, 0x08, 0x04, 0x14, +}; diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index 48a88885..6e815ae4 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -891,11 +891,6 @@ struct get_inkey_test { char *html; }; -static unsigned char get_inkey_411[] = { 0xD0, 0x11, 0x81, 0x03, 0x01, 0x22, - 0x03, 0x82, 0x02, 0x81, 0x82, - 0x8D, 0x06, 0x04, 0x45, 0x6E, - 0x74, 0x65, 0x72 }; - static unsigned char get_inkey_511[] = { 0xD0, 0x15, 0x81, 0x03, 0x01, 0x22, 0x04, 0x82, 0x02, 0x81, 0x82, 0x8D, 0x0A, 0x04, 0x45, 0x6E, @@ -17615,12 +17610,6 @@ static const struct terminal_response_test get_inkey_response_data_211 = { }, }; -static const unsigned char get_inkey_response_411[] = { - 0x81, 0x03, 0x01, 0x22, 0x03, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, 0x8d, 0x03, 0x08, 0x04, - 0x14, -}; - static const struct terminal_response_test get_inkey_response_data_411 = { .pdu = get_inkey_response_411, .pdu_len = sizeof(get_inkey_response_411),