summaryrefslogtreecommitdiffstats
path: root/unit
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-18 20:28:56 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-18 20:28:56 -0500
commit594ff3678de80f59434300c8de2946967b430c21 (patch)
tree1385a69eb2b18a306da419f03fabe7f256960e18 /unit
parent9420c09b4cd5630f8fbd993fbe0a5c64ab8ee9e4 (diff)
downloadofono-594ff3678de80f59434300c8de2946967b430c21.tar.bz2
unit: Move GetInput 4.1-4.2 test data
Diffstat (limited to 'unit')
-rw-r--r--unit/stk-test-data.h35
-rw-r--r--unit/test-stkutil.c45
2 files changed, 35 insertions, 45 deletions
diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h
index 9bbf8515..7786ce19 100644
--- a/unit/stk-test-data.h
+++ b/unit/stk-test-data.h
@@ -798,3 +798,38 @@ static const unsigned char get_input_321[] = {
};
#define get_input_response_321 get_input_response_311
+
+static const unsigned char get_input_411[] = {
+ 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, 0x0C, 0x0C
+};
+
+static const unsigned char get_input_response_411[] = {
+ 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+ 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,
+};
+
+static const unsigned char get_input_421[] = {
+ 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_421[] = {
+ 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+ 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,
+};
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 05e43ef8..76b9aba9 100644
--- a/unit/test-stkutil.c
+++ b/unit/test-stkutil.c
@@ -1553,20 +1553,6 @@ struct get_input_test {
char *html;
};
-static unsigned char get_input_411[] = { 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, 0x0C, 0x0C };
-
-static unsigned char get_input_421[] = { 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 unsigned char get_input_511[] = { 0xD0, 0x23, 0x81, 0x03, 0x01, 0x23,
0x00, 0x82, 0x02, 0x81, 0x82,
0x8D, 0x0C, 0x04, 0x45, 0x6E,
@@ -17693,14 +17679,6 @@ static const struct terminal_response_test get_input_response_data_311 = {
},
};
-static const unsigned char get_input_response_411[] = {
- 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x00, 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,
-};
-
static const struct terminal_response_test get_input_response_data_411 = {
.pdu = get_input_response_411,
.pdu_len = sizeof(get_input_response_411),
@@ -17721,29 +17699,6 @@ static const struct terminal_response_test get_input_response_data_411 = {
},
};
-static const unsigned char get_input_response_421[] = {
- 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x00, 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,
-};
-
static const struct terminal_response_test get_input_response_data_421 = {
.pdu = get_input_response_421,
.pdu_len = sizeof(get_input_response_421),