From: Yang Gu <yang.gu@intel.com>
To: ofono@ofono.org
Subject: [PATCH 02/12] teststk: Add test for send ss parser
Date: Sun, 13 Jun 2010 17:43:12 +0800 [thread overview]
Message-ID: <1276422202-16240-2-git-send-email-yang.gu@intel.com> (raw)
In-Reply-To: <1276422202-16240-1-git-send-email-yang.gu@intel.com>
[-- Attachment #1: Type: text/plain, Size: 33429 bytes --]
---
unit/test-stkutil.c | 1054 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 1054 insertions(+), 0 deletions(-)
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 404f092..3f6a31a 100644
--- a/unit/test-stkutil.c
+++ b/unit/test-stkutil.c
@@ -272,6 +272,14 @@ static void check_gsm_sms(const struct sms *command,
}
}
+/* Defined in TS 102.223 Section 8.14 */
+static inline void check_ss(const struct stk_ss *command,
+ const struct stk_ss *test)
+{
+ g_assert(command->ton_npi == test->ton_npi);
+ check_common_text(command->ss, test->ss);
+}
+
/* Defined in TS 102.223 Section 8.15 */
static inline void check_text(const char *command, const char *test)
{
@@ -8732,6 +8740,977 @@ static void test_send_sms(gconstpointer data)
stk_command_free(command);
}
+struct send_ss_test {
+ const unsigned char *pdu;
+ unsigned int pdu_len;
+ unsigned char qualifier;
+ char *alpha_id;
+ struct stk_ss ss;
+ struct stk_icon_id icon_id;
+ struct stk_text_attribute text_attr;
+ struct stk_frame_id frame_id;
+};
+
+static unsigned char send_ss_111[] = { 0xD0, 0x29, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x0C, 0x43, 0x61, 0x6C,
+ 0x6C, 0x20, 0x46, 0x6F, 0x72,
+ 0x77, 0x61, 0x72, 0x64, 0x89,
+ 0x10, 0x91, 0xAA, 0x12, 0x0A,
+ 0x21, 0x43, 0x65, 0x87, 0x09,
+ 0x21, 0x43, 0x65, 0x87, 0xA9,
+ 0x01, 0xFB };
+
+static unsigned char send_ss_141[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x0C, 0x43, 0x61, 0x6C,
+ 0x6C, 0x20, 0x46, 0x6F, 0x72,
+ 0x77, 0x61, 0x72, 0x64, 0x89,
+ 0x14, 0x91, 0xAA, 0x12, 0x0A,
+ 0x21, 0x43, 0x65, 0x87, 0x09,
+ 0x21, 0x43, 0x65, 0x87, 0x09,
+ 0x21, 0x43, 0x65, 0xA7, 0x11,
+ 0xFB };
+
+static unsigned char send_ss_151[] = { 0xD0, 0x81, 0xFD, 0x81, 0x03, 0x01,
+ 0x11, 0x00, 0x82, 0x02, 0x81,
+ 0x83, 0x85, 0x81, 0xEB, 0x45,
+ 0x76, 0x65, 0x6E, 0x20, 0x69,
+ 0x66, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x46, 0x69, 0x78, 0x65,
+ 0x64, 0x20, 0x44, 0x69, 0x61,
+ 0x6C, 0x6C, 0x69, 0x6E, 0x67,
+ 0x20, 0x4E, 0x75, 0x6D, 0x62,
+ 0x65, 0x72, 0x20, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x20, 0x69, 0x73, 0x20, 0x65,
+ 0x6E, 0x61, 0x62, 0x6C, 0x65,
+ 0x64, 0x2C, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x73, 0x75, 0x70,
+ 0x70, 0x6C, 0x65, 0x6D, 0x65,
+ 0x6E, 0x74, 0x61, 0x72, 0x79,
+ 0x20, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x20, 0x63,
+ 0x6F, 0x6E, 0x74, 0x72, 0x6F,
+ 0x6C, 0x20, 0x73, 0x74, 0x72,
+ 0x69, 0x6E, 0x67, 0x20, 0x69,
+ 0x6E, 0x63, 0x6C, 0x75, 0x64,
+ 0x65, 0x64, 0x20, 0x69, 0x6E,
+ 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x53, 0x45, 0x4E, 0x44, 0x20,
+ 0x53, 0x53, 0x20, 0x70, 0x72,
+ 0x6F, 0x61, 0x63, 0x74, 0x69,
+ 0x76, 0x65, 0x20, 0x63, 0x6F,
+ 0x6D, 0x6D, 0x61, 0x6E, 0x64,
+ 0x20, 0x73, 0x68, 0x61, 0x6C,
+ 0x6C, 0x20, 0x6E, 0x6F, 0x74,
+ 0x20, 0x62, 0x65, 0x20, 0x63,
+ 0x68, 0x65, 0x63, 0x6B, 0x65,
+ 0x64, 0x20, 0x61, 0x67, 0x61,
+ 0x69, 0x6E, 0x73, 0x74, 0x20,
+ 0x74, 0x68, 0x6F, 0x73, 0x65,
+ 0x20, 0x6F, 0x66, 0x20, 0x74,
+ 0x68, 0x65, 0x20, 0x46, 0x44,
+ 0x4E, 0x20, 0x6C, 0x69, 0x73,
+ 0x74, 0x2E, 0x20, 0x55, 0x70,
+ 0x6F, 0x6E, 0x20, 0x72, 0x65,
+ 0x63, 0x65, 0x69, 0x76, 0x69,
+ 0x6E, 0x67, 0x20, 0x74, 0x68,
+ 0x69, 0x73, 0x20, 0x63, 0x6F,
+ 0x6D, 0x6D, 0x61, 0x6E, 0x64,
+ 0x2C, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x4D, 0x45, 0x20, 0x73,
+ 0x68, 0x61, 0x6C, 0x6C, 0x20,
+ 0x64, 0x65, 0x63, 0x69, 0x89,
+ 0x04, 0xFF, 0xBA, 0x13, 0xFB };
+
+static unsigned char send_ss_161[] = { 0xD0, 0x1D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x00, 0x89, 0x10, 0x91,
+ 0xAA, 0x12, 0x0A, 0x21, 0x43,
+ 0x65, 0x87, 0x09, 0x21, 0x43,
+ 0x65, 0x87, 0xA9, 0x01, 0xFB };
+
+static unsigned char send_ss_211[] = { 0xD0, 0x2B, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x0A, 0x42, 0x61, 0x73,
+ 0x69, 0x63, 0x20, 0x49, 0x63,
+ 0x6F, 0x6E, 0x89, 0x10, 0x91,
+ 0xAA, 0x12, 0x0A, 0x21, 0x43,
+ 0x65, 0x87, 0x09, 0x21, 0x43,
+ 0x65, 0x87, 0xA9, 0x01, 0xFB,
+ 0x9E, 0x02, 0x00, 0x01 };
+
+static unsigned char send_ss_221[] = { 0xD0, 0x2C, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x0B, 0x43, 0x6F, 0x6C,
+ 0x6F, 0x75, 0x72, 0x20, 0x49,
+ 0x63, 0x6F, 0x6E, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0x9E, 0x02, 0x00, 0x02 };
+
+static unsigned char send_ss_231[] = { 0xD0, 0x2B, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x0A, 0x42, 0x61, 0x73,
+ 0x69, 0x63, 0x20, 0x49, 0x63,
+ 0x6F, 0x6E, 0x89, 0x10, 0x91,
+ 0xAA, 0x12, 0x0A, 0x21, 0x43,
+ 0x65, 0x87, 0x09, 0x21, 0x43,
+ 0x65, 0x87, 0xA9, 0x01, 0xFB,
+ 0x9E, 0x02, 0x01, 0x01 };
+
+static unsigned char send_ss_241[] = { 0xD0, 0x1D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x89, 0x0E, 0x91, 0xAA, 0x12,
+ 0x0A, 0x21, 0x43, 0x65, 0x87,
+ 0x09, 0x21, 0x43, 0x65, 0x87,
+ 0xB9, 0x9E, 0x02, 0x01, 0x01 };
+
+static unsigned char send_ss_311[] = { 0xD0, 0x36, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x19, 0x80, 0x04, 0x17,
+ 0x04, 0x14, 0x04, 0x20, 0x04,
+ 0x10, 0x04, 0x12, 0x04, 0x21,
+ 0x04, 0x22, 0x04, 0x12, 0x04,
+ 0x23, 0x04, 0x19, 0x04, 0x22,
+ 0x04, 0x15, 0x89, 0x10, 0x91,
+ 0xAA, 0x12, 0x0A, 0x21, 0x43,
+ 0x65, 0x87, 0x09, 0x21, 0x43,
+ 0x65, 0x87, 0xA9, 0x01, 0xFB };
+
+static unsigned char send_ss_411[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_412[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_421[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x01, 0xB4 };
+
+static unsigned char send_ss_422[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_431[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x02, 0xB4 };
+
+static unsigned char send_ss_432[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_441[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x04, 0xB4 };
+
+static unsigned char send_ss_442[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_443[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x33, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_451[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x08, 0xB4 };
+
+static unsigned char send_ss_452[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_453[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x33, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_461[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x10, 0xB4 };
+
+static unsigned char send_ss_462[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_463[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x33, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_471[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x20, 0xB4 };
+
+static unsigned char send_ss_472[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_473[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x33, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_481[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x40, 0xB4 };
+
+static unsigned char send_ss_482[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_483[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x33, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_491[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x80, 0xB4 };
+
+static unsigned char send_ss_492[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_493[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x33, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_4101[] = { 0xD0, 0x33, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x31, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB, 0xD0, 0x04, 0x00, 0x10,
+ 0x00, 0xB4 };
+
+static unsigned char send_ss_4102[] = { 0xD0, 0x2D, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x10, 0x54, 0x65, 0x78,
+ 0x74, 0x20, 0x41, 0x74, 0x74,
+ 0x72, 0x69, 0x62, 0x75, 0x74,
+ 0x65, 0x20, 0x32, 0x89, 0x10,
+ 0x91, 0xAA, 0x12, 0x0A, 0x21,
+ 0x43, 0x65, 0x87, 0x09, 0x21,
+ 0x43, 0x65, 0x87, 0xA9, 0x01,
+ 0xFB };
+
+static unsigned char send_ss_511[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x05, 0x80, 0x4F, 0x60,
+ 0x59, 0x7D, 0x89, 0x10, 0x91,
+ 0xAA, 0x12, 0x0A, 0x21, 0x43,
+ 0x65, 0x87, 0x09, 0x21, 0x43,
+ 0x65, 0x87, 0xA9, 0x01, 0xFB };
+
+static unsigned char send_ss_611[] = { 0xD0, 0x20, 0x81, 0x03, 0x01, 0x11,
+ 0x00, 0x82, 0x02, 0x81, 0x83,
+ 0x85, 0x03, 0x80, 0x30, 0xEB,
+ 0x89, 0x10, 0x91, 0xAA, 0x12,
+ 0x0A, 0x21, 0x43, 0x65, 0x87,
+ 0x09, 0x21, 0x43, 0x65, 0x87,
+ 0xA9, 0x01, 0xFB };
+
+static struct send_ss_test send_ss_data_111 = {
+ .pdu = send_ss_111,
+ .pdu_len = sizeof(send_ss_111),
+ .qualifier = 0x00,
+ .alpha_id = "Call Forward",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_141 = {
+ .pdu = send_ss_141,
+ .pdu_len = sizeof(send_ss_141),
+ .qualifier = 0x00,
+ .alpha_id = "Call Forward",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*0123456789012345678901234567*11#"
+ }
+};
+
+static struct send_ss_test send_ss_data_151 = {
+ .pdu = send_ss_151,
+ .pdu_len = sizeof(send_ss_151),
+ .qualifier = 0x00,
+ .alpha_id = "Even if the Fixed Dialling Number service is enabled, the "
+ "supplementary service control string included in the SEND SS "
+ "proactive command shall not be checked against those of the "
+ "FDN list. Upon receiving this command, the ME shall deci",
+ .ss = {
+ .ton_npi = 0xFF,
+ .ss = "*#31#"
+ }
+};
+
+static struct send_ss_test send_ss_data_161 = {
+ .pdu = send_ss_161,
+ .pdu_len = sizeof(send_ss_161),
+ .qualifier = 0x00,
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_211 = {
+ .pdu = send_ss_211,
+ .pdu_len = sizeof(send_ss_211),
+ .qualifier = 0x00,
+ .alpha_id = "Basic Icon",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .icon_id = {
+ .qualifier = STK_ICON_QUALIFIER_TYPE_SELF_EXPLANATORY,
+ .id = 0x01
+ }
+};
+
+static struct send_ss_test send_ss_data_221 = {
+ .pdu = send_ss_221,
+ .pdu_len = sizeof(send_ss_221),
+ .qualifier = 0x00,
+ .alpha_id = "Colour Icon",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .icon_id = {
+ .qualifier = STK_ICON_QUALIFIER_TYPE_SELF_EXPLANATORY,
+ .id = 0x02
+ }
+};
+
+static struct send_ss_test send_ss_data_231 = {
+ .pdu = send_ss_231,
+ .pdu_len = sizeof(send_ss_231),
+ .qualifier = 0x00,
+ .alpha_id = "Basic Icon",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .icon_id = {
+ .qualifier = STK_ICON_QUALIFIER_TYPE_NON_SELF_EXPLANATORY,
+ .id = 0x01
+ }
+};
+
+static struct send_ss_test send_ss_data_241 = {
+ .pdu = send_ss_241,
+ .pdu_len = sizeof(send_ss_241),
+ .qualifier = 0x00,
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789#"
+ },
+ .icon_id = {
+ .qualifier = STK_ICON_QUALIFIER_TYPE_NON_SELF_EXPLANATORY,
+ .id = 0x01
+ }
+};
+
+static struct send_ss_test send_ss_data_311 = {
+ .pdu = send_ss_311,
+ .pdu_len = sizeof(send_ss_311),
+ .qualifier = 0x00,
+ .alpha_id = "ЗДРАВСТВУЙТЕ",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_411 = {
+ .pdu = send_ss_411,
+ .pdu_len = sizeof(send_ss_411),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_412 = {
+ .pdu = send_ss_412,
+ .pdu_len = sizeof(send_ss_412),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_421 = {
+ .pdu = send_ss_421,
+ .pdu_len = sizeof(send_ss_421),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x01, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_422 = {
+ .pdu = send_ss_422,
+ .pdu_len = sizeof(send_ss_422),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_431 = {
+ .pdu = send_ss_431,
+ .pdu_len = sizeof(send_ss_431),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x02, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_432 = {
+ .pdu = send_ss_432,
+ .pdu_len = sizeof(send_ss_432),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_441 = {
+ .pdu = send_ss_441,
+ .pdu_len = sizeof(send_ss_441),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x04, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_442 = {
+ .pdu = send_ss_442,
+ .pdu_len = sizeof(send_ss_442),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_443 = {
+ .pdu = send_ss_443,
+ .pdu_len = sizeof(send_ss_443),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 3",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_451 = {
+ .pdu = send_ss_451,
+ .pdu_len = sizeof(send_ss_451),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x08, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_452 = {
+ .pdu = send_ss_452,
+ .pdu_len = sizeof(send_ss_452),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_453 = {
+ .pdu = send_ss_453,
+ .pdu_len = sizeof(send_ss_453),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 3",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_461 = {
+ .pdu = send_ss_461,
+ .pdu_len = sizeof(send_ss_461),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x10, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_462 = {
+ .pdu = send_ss_462,
+ .pdu_len = sizeof(send_ss_462),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_463 = {
+ .pdu = send_ss_463,
+ .pdu_len = sizeof(send_ss_463),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 3",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_471 = {
+ .pdu = send_ss_471,
+ .pdu_len = sizeof(send_ss_471),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x20, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_472 = {
+ .pdu = send_ss_472,
+ .pdu_len = sizeof(send_ss_472),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_473 = {
+ .pdu = send_ss_473,
+ .pdu_len = sizeof(send_ss_473),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 3",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_481 = {
+ .pdu = send_ss_481,
+ .pdu_len = sizeof(send_ss_481),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x40, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_482 = {
+ .pdu = send_ss_482,
+ .pdu_len = sizeof(send_ss_482),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_483 = {
+ .pdu = send_ss_483,
+ .pdu_len = sizeof(send_ss_483),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 3",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_491 = {
+ .pdu = send_ss_491,
+ .pdu_len = sizeof(send_ss_491),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x80, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_492 = {
+ .pdu = send_ss_492,
+ .pdu_len = sizeof(send_ss_492),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_493 = {
+ .pdu = send_ss_493,
+ .pdu_len = sizeof(send_ss_493),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 3",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_4101 = {
+ .pdu = send_ss_4101,
+ .pdu_len = sizeof(send_ss_4101),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 1",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ },
+ .text_attr = {
+ .len = 4,
+ .attributes = { 0x00, 0x10, 0x00, 0xB4 }
+ }
+};
+
+static struct send_ss_test send_ss_data_4102 = {
+ .pdu = send_ss_4102,
+ .pdu_len = sizeof(send_ss_4102),
+ .qualifier = 0x00,
+ .alpha_id = "Text Attribute 2",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_511 = {
+ .pdu = send_ss_511,
+ .pdu_len = sizeof(send_ss_511),
+ .qualifier = 0x00,
+ .alpha_id = "你好",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static struct send_ss_test send_ss_data_611 = {
+ .pdu = send_ss_611,
+ .pdu_len = sizeof(send_ss_611),
+ .qualifier = 0x00,
+ .alpha_id = "ル",
+ .ss = {
+ .ton_npi = 0x91,
+ .ss = "**21*01234567890123456789*10#"
+ }
+};
+
+static void test_send_ss(gconstpointer data)
+{
+ const struct send_ss_test *test = data;
+ struct stk_command *command;
+
+ command = stk_command_new_from_pdu(test->pdu, test->pdu_len);
+
+ g_assert(command);
+
+ g_assert(command->number == 1);
+ g_assert(command->type == STK_COMMAND_TYPE_SEND_SS);
+ g_assert(command->qualifier == test->qualifier);
+
+ g_assert(command->src == STK_DEVICE_IDENTITY_TYPE_UICC);
+ g_assert(command->dst == STK_DEVICE_IDENTITY_TYPE_NETWORK);
+
+ check_alpha_id(command->send_ss.alpha_id, test->alpha_id);
+ check_ss(&command->send_ss.ss, &test->ss);
+ check_icon_id(&command->send_ss.icon_id, &test->icon_id);
+ check_text_attr(&command->send_ss.text_attr, &test->text_attr);
+ check_frame_id(&command->send_ss.frame_id, &test->frame_id);
+
+ stk_command_free(command);
+}
+
struct setup_call_test {
const unsigned char *pdu;
unsigned int pdu_len;
@@ -19224,6 +20203,81 @@ int main(int argc, char **argv)
g_test_add_data_func("/teststk/Send SMS 6.1.3",
&send_sms_data_613, test_send_sms);
+ g_test_add_data_func("/teststk/Send SS 1.1.1",
+ &send_ss_data_111, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 1.4.1",
+ &send_ss_data_141, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 1.5.1",
+ &send_ss_data_151, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 1.6.1",
+ &send_ss_data_161, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 2.1.1",
+ &send_ss_data_211, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 2.2.1",
+ &send_ss_data_221, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 2.3.1",
+ &send_ss_data_231, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 2.4.1",
+ &send_ss_data_241, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 3.1.1",
+ &send_ss_data_311, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.1.1",
+ &send_ss_data_411, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.1.2",
+ &send_ss_data_412, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.2.1",
+ &send_ss_data_421, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.2.2",
+ &send_ss_data_422, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.3.1",
+ &send_ss_data_431, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.3.2",
+ &send_ss_data_432, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.4.1",
+ &send_ss_data_441, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.4.2",
+ &send_ss_data_442, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.4.3",
+ &send_ss_data_443, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.5.1",
+ &send_ss_data_451, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.5.2",
+ &send_ss_data_452, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.5.3",
+ &send_ss_data_453, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.6.1",
+ &send_ss_data_461, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.6.2",
+ &send_ss_data_462, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.6.3",
+ &send_ss_data_463, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.7.1",
+ &send_ss_data_471, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.7.2",
+ &send_ss_data_472, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.7.3",
+ &send_ss_data_473, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.8.1",
+ &send_ss_data_481, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.8.2",
+ &send_ss_data_482, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.8.3",
+ &send_ss_data_483, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.9.1",
+ &send_ss_data_491, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.9.2",
+ &send_ss_data_492, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.9.3",
+ &send_ss_data_493, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.10.1",
+ &send_ss_data_4101, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 4.10.2",
+ &send_ss_data_4102, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 5.1.1",
+ &send_ss_data_511, test_send_ss);
+ g_test_add_data_func("/teststk/Send SS 6.1.1",
+ &send_ss_data_611, test_send_ss);
+
g_test_add_data_func("/teststk/Send SMS response 1.1.1",
&send_sms_response_data_111,
test_terminal_response_encoding);
--
1.7.0.4
next prev parent reply other threads:[~2010-06-13 9:43 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-13 9:43 [PATCH 01/12] stk: Add parser for send ss commands Yang Gu
2010-06-13 9:43 ` Yang Gu [this message]
2010-06-13 9:43 ` [PATCH 03/12] stk: Add parser for send ussd commands Yang Gu
2010-06-16 22:44 ` Denis Kenzior
2010-06-13 9:43 ` [PATCH 04/12] teststk: Add test for send ussd parser Yang Gu
2010-06-13 9:43 ` [PATCH 05/12] Modify " Yang Gu
2010-06-16 22:48 ` Denis Kenzior
2010-06-17 10:33 ` Gu, Yang
2010-06-17 9:35 ` Denis Kenzior
2010-06-13 9:43 ` [PATCH 06/12] Refactor " Yang Gu
2010-06-16 22:49 ` Denis Kenzior
2010-06-21 14:09 ` Aki Niemi
2010-06-21 14:08 ` Aki Niemi
2010-06-13 9:43 ` [PATCH 07/12] Add several proactive command parsers Yang Gu
2010-06-13 9:43 ` [PATCH 08/12] stk: Add parser for cell broadcast page objects Yang Gu
2010-06-13 9:43 ` [PATCH 09/12] stk: Add parser for bcch channel list objects Yang Gu
2010-06-13 9:43 ` [PATCH 10/12] stk: Add parser for timing advance objects Yang Gu
2010-06-16 22:50 ` Denis Kenzior
2010-06-16 23:19 ` andrzej zaborowski
2010-06-17 1:44 ` Gu, Yang
2010-06-13 9:43 ` [PATCH 11/12] stk: Add parser for PDP activation param objects Yang Gu
2010-06-13 9:43 ` [PATCH 12/12] stk: Add parser for UTRAN meas qualifier objects Yang Gu
2010-06-16 22:42 ` [PATCH 01/12] stk: Add parser for send ss commands Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1276422202-16240-2-git-send-email-yang.gu@intel.com \
--to=yang.gu@intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.