diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-10-09 11:16:16 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-10-09 11:27:10 -0500 |
commit | 690ed1f32b44585cdf53a247300adef3bf2b47d8 (patch) | |
tree | a7460bf04362e234727a229e3e009dccc4ce5134 /unit | |
parent | 1e739a0405cb4f80519e0643cb39e8279c268f61 (diff) |
unit: Move GetInkey 5.1 test data
Diffstat (limited to 'unit')
-rw-r--r-- | unit/stk-test-data.h | 20 | ||||
-rw-r--r-- | unit/test-stkutil.c | 22 |
2 files changed, 20 insertions, 22 deletions
diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h index cd562a13..1e316f56 100644 --- a/unit/stk-test-data.h +++ b/unit/stk-test-data.h @@ -413,3 +413,23 @@ 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 unsigned char get_inkey_511[] = { + 0xD0, 0x15, 0x81, 0x03, 0x01, 0x22, 0x04, 0x82, 0x02, 0x81, 0x82, 0x8D, + 0x0A, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x59, 0x45, 0x53 +}; + +static const unsigned char get_inkey_response_511[] = { + 0x81, 0x03, 0x01, 0x22, 0x04, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, + 0x8d, 0x02, 0x04, 0x01, +}; + +static const unsigned char get_inkey_512[] = { + 0xD0, 0x14, 0x81, 0x03, 0x01, 0x22, 0x04, 0x82, 0x02, 0x81, 0x82, 0x8D, + 0x09, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x4E, 0x4F +}; + +static const unsigned char get_inkey_response_512[] = { + 0x81, 0x03, 0x01, 0x22, 0x04, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, + 0x8d, 0x02, 0x04, 0x00, +}; diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index 6e815ae4..9d9afa11 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -891,18 +891,6 @@ struct get_inkey_test { char *html; }; -static unsigned char get_inkey_511[] = { 0xD0, 0x15, 0x81, 0x03, 0x01, 0x22, - 0x04, 0x82, 0x02, 0x81, 0x82, - 0x8D, 0x0A, 0x04, 0x45, 0x6E, - 0x74, 0x65, 0x72, 0x20, 0x59, - 0x45, 0x53 }; - -static unsigned char get_inkey_512[] = { 0xD0, 0x14, 0x81, 0x03, 0x01, 0x22, - 0x04, 0x82, 0x02, 0x81, 0x82, - 0x8D, 0x09, 0x04, 0x45, 0x6E, - 0x74, 0x65, 0x72, 0x20, 0x4E, - 0x4F }; - static unsigned char get_inkey_611[] = { 0xD0, 0x19, 0x81, 0x03, 0x01, 0x22, 0x00, 0x82, 0x02, 0x81, 0x82, 0x8D, 0x0A, 0x04, 0x3C, 0x4E, @@ -17630,11 +17618,6 @@ static const struct terminal_response_test get_inkey_response_data_411 = { }, }; -static const unsigned char get_inkey_response_511[] = { - 0x81, 0x03, 0x01, 0x22, 0x04, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, 0x8d, 0x02, 0x04, 0x01, -}; - static const struct terminal_response_test get_inkey_response_data_511 = { .pdu = get_inkey_response_511, .pdu_len = sizeof(get_inkey_response_511), @@ -17656,11 +17639,6 @@ static const struct terminal_response_test get_inkey_response_data_511 = { }, }; -static const unsigned char get_inkey_response_512[] = { - 0x81, 0x03, 0x01, 0x22, 0x04, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, 0x8d, 0x02, 0x04, 0x00, -}; - static const struct terminal_response_test get_inkey_response_data_512 = { .pdu = get_inkey_response_512, .pdu_len = sizeof(get_inkey_response_512), |