summaryrefslogtreecommitdiffstats
path: root/unit
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-20 21:16:18 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-20 21:17:18 -0500
commit7ace5b454cb3dcada79a6f1317ec5d2dfeaa5a8b (patch)
tree1f7e2c890500621f040c112111fc7c97ae51a663 /unit
parentc3e2b9e4d1501d5da08b4bc19ee05f30aadf4f90 (diff)
downloadofono-7ace5b454cb3dcada79a6f1317ec5d2dfeaa5a8b.tar.bz2
unit: Move GetInput test data 12.1-12.2
Diffstat (limited to 'unit')
-rw-r--r--unit/stk-test-data.h33
-rw-r--r--unit/test-stkutil.c43
2 files changed, 33 insertions, 43 deletions
diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h
index 2fed85bf..0256f194 100644
--- a/unit/stk-test-data.h
+++ b/unit/stk-test-data.h
@@ -1062,3 +1062,36 @@ static const unsigned char get_input_1121[] = {
0x91, 0x02, 0x05, 0x05 };
#define get_input_response_1121 get_input_response_311
+
+static const unsigned char get_input_1211[] = {
+ 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x81, 0x82, 0x8D,
+ 0x0C, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x48, 0x65, 0x6C, 0x6C,
+ 0x6F, 0x91, 0x02, 0x02, 0x02
+};
+
+static const unsigned char get_input_response_1211[] = {
+ 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+ 0x8d, 0x05, 0x08, 0x30, 0xeb, 0x30, 0xeb,
+};
+
+static const unsigned char get_input_1221[] = {
+ 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x81, 0x82, 0x8D,
+ 0x0C, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x48, 0x65, 0x6C, 0x6C,
+ 0x6F, 0x91, 0x02, 0x05, 0xFF
+};
+
+static const unsigned char get_input_response_1221[] = {
+ 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+ 0x8d, 0x81, 0x8d, 0x08, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+ 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
+};
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 3afea11a..a63c3f77 100644
--- a/unit/test-stkutil.c
+++ b/unit/test-stkutil.c
@@ -1678,20 +1678,6 @@ static unsigned char get_input_8102[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23,
0x32, 0x32, 0x32, 0x32, 0x91,
0x02, 0x05, 0x05 };
-static unsigned char get_input_1211[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23,
- 0x03, 0x82, 0x02, 0x81, 0x82,
- 0x8D, 0x0C, 0x04, 0x45, 0x6E,
- 0x74, 0x65, 0x72, 0x20, 0x48,
- 0x65, 0x6C, 0x6C, 0x6F, 0x91,
- 0x02, 0x02, 0x02 };
-
-static unsigned char get_input_1221[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23,
- 0x03, 0x82, 0x02, 0x81, 0x82,
- 0x8D, 0x0C, 0x04, 0x45, 0x6E,
- 0x74, 0x65, 0x72, 0x20, 0x48,
- 0x65, 0x6C, 0x6C, 0x6F, 0x91,
- 0x02, 0x05, 0xFF };
-
static struct get_input_test get_input_data_111 = {
.pdu = get_input_111,
.pdu_len = sizeof(get_input_111),
@@ -17634,12 +17620,6 @@ static const struct terminal_response_test get_input_response_data_1021 = {
},
};
-static const unsigned char get_input_response_1211[] = {
- 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x00, 0x8d, 0x05, 0x08, 0x30,
- 0xeb, 0x30, 0xeb,
-};
-
static const struct terminal_response_test get_input_response_data_1211 = {
.pdu = get_input_response_1211,
.pdu_len = sizeof(get_input_response_1211),
@@ -17660,29 +17640,6 @@ static const struct terminal_response_test get_input_response_data_1211 = {
},
};
-static const unsigned char get_input_response_1221[] = {
- 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x00, 0x8d, 0x81, 0x8d, 0x08,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb, 0x30, 0xeb,
- 0x30, 0xeb, 0x30, 0xeb,
-};
-
static const struct terminal_response_test get_input_response_data_1221 = {
.pdu = get_input_response_1221,
.pdu_len = sizeof(get_input_response_1221),