unit: Move test data for Get Inkey 1.5-1.6
authorDenis Kenzior <denkenz@gmail.com>
Tue, 9 Oct 2012 05:16:32 +0000 (00:16 -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 526cc2e..41a336c 100644 (file)
@@ -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,
+};
index 5b2fe36..9564a35 100644 (file)
@@ -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),