unit: Move GetInkey 4.1 test data
authorDenis Kenzior <denkenz@gmail.com>
Tue, 9 Oct 2012 16:00:09 +0000 (11:00 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 9 Oct 2012 16:26:59 +0000 (11:26 -0500)
unit/stk-test-data.h
unit/test-stkutil.c

index c161f23..cd562a1 100644 (file)
@@ -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,
+};
index 48a8888..6e815ae 100644 (file)
@@ -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),