diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-06-17 15:42:10 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-18 14:04:57 -0500 |
commit | d0018e9772ab8cc6e66f26efc742ca0569a62bc4 (patch) | |
tree | 48b66242c5088f0b13b8f9849376994d9fa05460 | |
parent | 1b4dd4cd8337bf09b62685cdb0d8fab742c8197e (diff) | |
download | ofono-d0018e9772ab8cc6e66f26efc742ca0569a62bc4.tar.bz2 |
test-stkutil: Add a More Time response builder test
-rw-r--r-- | unit/test-stkutil.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index dd22912a..c586a7bb 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -17418,6 +17418,26 @@ static const struct terminal_response_test get_input_response_data_1221 = { }, }; +static const unsigned char more_time_response_111[] = { + 0x81, 0x03, 0x01, 0x02, 0x00, 0x82, 0x02, 0x82, + 0x81, 0x83, 0x01, 0x00, +}; + +static const struct terminal_response_test more_time_response_data_111 = { + .pdu = more_time_response_111, + .pdu_len = sizeof(more_time_response_111), + .response = { + .number = 1, + .type = STK_COMMAND_TYPE_MORE_TIME, + .qualifier = 0x00, + .src = STK_DEVICE_IDENTITY_TYPE_TERMINAL, + .dst = STK_DEVICE_IDENTITY_TYPE_UICC, + .result = { + .type = STK_RESULT_TYPE_SUCCESS, + }, + }, +}; + static const unsigned char send_sms_response_111[] = { 0x81, 0x03, 0x01, 0x13, 0x00, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, @@ -22266,6 +22286,10 @@ int main(int argc, char **argv) g_test_add_data_func("/teststk/More Time 1.1.1", &more_time_data_111, test_more_time); + g_test_add_data_func("/teststk/More Time response 1.1.1", + &more_time_response_data_111, + test_terminal_response_encoding); + g_test_add_data_func("/teststk/Play Tone 1.1.1", &play_tone_data_111, test_play_tone); g_test_add_data_func("/teststk/Play Tone 1.1.2", |