diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-05-27 06:59:43 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-28 11:29:34 -0500 |
commit | 280d8d4283b7043ddf764d5f5ed8ccb1d649e7d0 (patch) | |
tree | dee2523a49a4e574e91355c21d674d1bbcff1610 /unit/test-stkutil.c | |
parent | 970250be0ca68b963ac683ce7cf801f1ed4ed066 (diff) | |
download | ofono-280d8d4283b7043ddf764d5f5ed8ccb1d649e7d0.tar.bz2 |
test-stkutil: Add a Polling Off response test
Diffstat (limited to 'unit/test-stkutil.c')
-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 34fc63e7..35301f36 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -16184,6 +16184,26 @@ static const struct terminal_response_test set_up_call_response_data_311b = { }, }; +static const unsigned char polling_off_response_112[] = { + 0x81, 0x03, 0x01, 0x04, 0x00, 0x82, 0x02, 0x82, + 0x81, 0x83, 0x01, 0x00, +}; + +static const struct terminal_response_test polling_off_response_data_112 = { + .pdu = polling_off_response_112, + .pdu_len = sizeof(polling_off_response_112), + .response = { + .number = 1, + .type = STK_COMMAND_TYPE_POLLING_OFF, + .qualifier = 0x00, + .src = STK_DEVICE_IDENTITY_TYPE_TERMINAL, + .dst = STK_DEVICE_IDENTITY_TYPE_UICC, + .result = { + .type = STK_RESULT_TYPE_SUCCESS, + }, + }, +}; + int main(int argc, char **argv) { g_test_init(&argc, &argv, NULL); @@ -17207,6 +17227,10 @@ int main(int argc, char **argv) g_test_add_data_func("/teststk/Polling off 1.1.2", &polling_off_data_112, test_polling_off); + g_test_add_data_func("/teststk/Polling off response 1.1.2", + &polling_off_response_data_112, + test_terminal_response_encoding); + g_test_add_data_func("/teststk/Provide Local Info 1.2.1", &provide_local_info_data_121, test_provide_local_info); g_test_add_data_func("/teststk/Provide Local Info 1.4.1", |