diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-09-28 18:57:31 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-10-03 09:10:43 -0500 |
commit | 1cf87fe2d498e379b5c2d201fc527dac7b150bcd (patch) | |
tree | 2849a8fc5db87ed9a299bdddfce24953938feb01 /tools | |
parent | 8ec203628a0a2df2c764114e8deab0ec3dffbffa (diff) | |
download | ofono-1cf87fe2d498e379b5c2d201fc527dac7b150bcd.tar.bz2 |
stktest: Add DisplayText test sequence 2.1
Diffstat (limited to 'tools')
-rw-r--r-- | tools/stktest.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c index e6bca12e..6a2f45b7 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -1045,6 +1045,20 @@ static DBusMessage *test_display_text_18(DBusMessage *msg, return stktest_error_end_session(msg); } +static DBusMessage *test_display_text_21(DBusMessage *msg, + const char *text, + unsigned char icon_id, + gboolean urgent) +{ + STKTEST_AGENT_ASSERT(g_str_equal(text, "<TIME-OUT>")); + STKTEST_AGENT_ASSERT(icon_id == 0); + STKTEST_AGENT_ASSERT(urgent == FALSE); + + pending = dbus_message_ref(msg); + + return NULL; +} + static void power_down_reply(DBusPendingCall *call, void *user_data) { __stktest_test_next(); @@ -1143,6 +1157,11 @@ static void __stktest_test_init(void) display_text_response_191, sizeof(display_text_response_191), NULL, expect_response); + stktest_add_test("Display Text 2.1", "DisplayText", + display_text_211, sizeof(display_text_211), + display_text_response_211, + sizeof(display_text_response_211), + test_display_text_21, expect_response); } static void test_destroy(gpointer user_data) |