summaryrefslogtreecommitdiffstats
path: root/unit
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-18 13:45:49 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-18 13:45:49 -0500
commit03a619d7adfb0031ed39bf40d58fffa5005f4f4f (patch)
treea0c9fda8e049598c5d830e53d02d514e540c7da9 /unit
parent31eb35ea7eca6902c3a4fa64ca8b3f4a4d60fbf9 (diff)
downloadofono-03a619d7adfb0031ed39bf40d58fffa5005f4f4f.tar.bz2
unit: Move GetInput 3.1-3.2 test data
Diffstat (limited to 'unit')
-rw-r--r--unit/stk-test-data.h31
-rw-r--r--unit/test-stkutil.c49
2 files changed, 31 insertions, 49 deletions
diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h
index 8e9bfa13..9bbf8515 100644
--- a/unit/stk-test-data.h
+++ b/unit/stk-test-data.h
@@ -767,3 +767,34 @@ static const unsigned char get_input_211[] = {
static const unsigned char get_input_response_211[] = {
0x81, 0x03, 0x01, 0x23, 0x00, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x12,
};
+
+static const unsigned char get_input_311[] = {
+ 0xD0, 0x28, 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x81, 0x82, 0x8D,
+ 0x19, 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, 0x04, 0x12,
+ 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, 0x04, 0x22,
+ 0x04, 0x15, 0x91, 0x02, 0x05, 0x05
+};
+
+static const unsigned char get_input_response_311[] = {
+ 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+ 0x8d, 0x06, 0x04, 0x48, 0x45, 0x4c, 0x4c, 0x4f,
+};
+
+static const unsigned char get_input_321[] = {
+ 0xD0, 0x81, 0x9D, 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x81, 0x82,
+ 0x8D, 0x81, 0x8D, 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+ 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+ 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+ 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+ 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+ 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+ 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+ 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+ 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+ 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+ 0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+ 0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+ 0x91, 0x02, 0x05, 0x05
+};
+
+#define get_input_response_321 get_input_response_311
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 608fbad4..05e43ef8 100644
--- a/unit/test-stkutil.c
+++ b/unit/test-stkutil.c
@@ -1553,49 +1553,6 @@ struct get_input_test {
char *html;
};
-static unsigned char get_input_311[] = { 0xD0, 0x28, 0x81, 0x03, 0x01, 0x23,
- 0x01, 0x82, 0x02, 0x81, 0x82,
- 0x8D, 0x19, 0x08, 0x04, 0x17,
- 0x04, 0x14, 0x04, 0x20, 0x04,
- 0x10, 0x04, 0x12, 0x04, 0x21,
- 0x04, 0x22, 0x04, 0x12, 0x04,
- 0x23, 0x04, 0x19, 0x04, 0x22,
- 0x04, 0x15, 0x91, 0x02, 0x05,
- 0x05 };
-
-static unsigned char get_input_321[] = { 0xD0, 0x81, 0x9D, 0x81, 0x03, 0x01,
- 0x23, 0x01, 0x82, 0x02, 0x81,
- 0x82, 0x8D, 0x81, 0x8D, 0x08,
- 0x04, 0x17, 0x04, 0x14, 0x04,
- 0x20, 0x04, 0x10, 0x04, 0x12,
- 0x04, 0x21, 0x04, 0x22, 0x04,
- 0x12, 0x04, 0x23, 0x04, 0x19,
- 0x04, 0x22, 0x04, 0x15, 0x04,
- 0x17, 0x04, 0x14, 0x04, 0x20,
- 0x04, 0x10, 0x04, 0x12, 0x04,
- 0x21, 0x04, 0x22, 0x04, 0x12,
- 0x04, 0x23, 0x04, 0x19, 0x04,
- 0x22, 0x04, 0x15, 0x04, 0x17,
- 0x04, 0x14, 0x04, 0x20, 0x04,
- 0x10, 0x04, 0x12, 0x04, 0x21,
- 0x04, 0x22, 0x04, 0x12, 0x04,
- 0x23, 0x04, 0x19, 0x04, 0x22,
- 0x04, 0x15, 0x04, 0x17, 0x04,
- 0x14, 0x04, 0x20, 0x04, 0x10,
- 0x04, 0x12, 0x04, 0x21, 0x04,
- 0x22, 0x04, 0x12, 0x04, 0x23,
- 0x04, 0x19, 0x04, 0x22, 0x04,
- 0x15, 0x04, 0x17, 0x04, 0x14,
- 0x04, 0x20, 0x04, 0x10, 0x04,
- 0x12, 0x04, 0x21, 0x04, 0x22,
- 0x04, 0x12, 0x04, 0x23, 0x04,
- 0x19, 0x04, 0x22, 0x04, 0x15,
- 0x04, 0x17, 0x04, 0x14, 0x04,
- 0x20, 0x04, 0x10, 0x04, 0x12,
- 0x04, 0x21, 0x04, 0x22, 0x04,
- 0x12, 0x04, 0x23, 0x04, 0x19,
- 0x91, 0x02, 0x05, 0x05 };
-
static unsigned char get_input_411[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23,
0x03, 0x82, 0x02, 0x81, 0x82,
0x8D, 0x0C, 0x04, 0x45, 0x6E,
@@ -17716,12 +17673,6 @@ static const struct terminal_response_test get_input_response_data_211 = {
},
};
-static const unsigned char get_input_response_311[] = {
- 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x00, 0x8d, 0x06, 0x04, 0x48,
- 0x45, 0x4c, 0x4c, 0x4f,
-};
-
static const struct terminal_response_test get_input_response_data_311 = {
.pdu = get_input_response_311,
.pdu_len = sizeof(get_input_response_311),