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

index cd562a1..1e316f5 100644 (file)
@@ -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,
+};
index 6e815ae..9d9afa1 100644 (file)
@@ -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),