diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-09-28 18:24:08 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-10-03 09:10:43 -0500 |
commit | 5454b0174fabc517a11f3f9ce805d9a43621ec2b (patch) | |
tree | a93c791ac7c4dd20e244cac17f2d12a6fcf1df53 /tools | |
parent | bf894e7f2b776fe30cad2685a4479cc3876c0df2 (diff) | |
download | ofono-5454b0174fabc517a11f3f9ce805d9a43621ec2b.tar.bz2 |
stktest: Add DisplayText test sequence 1.6
Diffstat (limited to 'tools')
-rw-r--r-- | tools/stktest.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c index 1a9a17f1..cb9ae7a9 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -990,6 +990,23 @@ static DBusMessage *test_display_text_15(DBusMessage *msg, return NULL; } +static DBusMessage *test_display_text_16(DBusMessage *msg, + const char *text, + unsigned char icon_id, + gboolean urgent) +{ + STKTEST_AGENT_ASSERT(g_str_equal(text, "This command instructs the ME" + " to display a text message. " + "It allows the SIM to define " + "the priority of that message, " + "and the text string format. " + "Two types of prio")); + STKTEST_AGENT_ASSERT(icon_id == 0); + STKTEST_AGENT_ASSERT(urgent == FALSE); + + return dbus_message_new_method_return(msg); +} + static void power_down_reply(DBusPendingCall *call, void *user_data) { __stktest_test_next(); @@ -1068,6 +1085,11 @@ static void __stktest_test_init(void) display_text_response_151, sizeof(display_text_response_151), test_display_text_15, expect_response); + stktest_add_test("Display Text 1.6", "DisplayText", + display_text_161, sizeof(display_text_161), + display_text_response_161, + sizeof(display_text_response_161), + test_display_text_16, expect_response); } static void test_destroy(gpointer user_data) |