summaryrefslogtreecommitdiffstats
path: root/unit
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-09 00:16:32 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-09 11:26:59 -0500
commitbc796810c81e620d28cb59f1733f8a7f60011425 (patch)
tree6f6c1d6c8d6caf04e8d708e63452e5f21bdbc60f /unit
parentd7d3f86ff7da1b6b48840cfef98f6ebcaa969b02 (diff)
downloadofono-bc796810c81e620d28cb59f1733f8a7f60011425.tar.bz2
unit: Move test data for Get Inkey 1.5-1.6
Diffstat (limited to 'unit')
-rw-r--r--unit/stk-test-data.h33
-rw-r--r--unit/test-stkutil.c52
2 files changed, 33 insertions, 52 deletions
diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h
index 526cc2e7..41a336ce 100644
--- a/unit/stk-test-data.h
+++ b/unit/stk-test-data.h
@@ -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,
+};
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 5b2fe366..9564a356 100644
--- a/unit/test-stkutil.c
+++ b/unit/test-stkutil.c
@@ -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),