From: Denis Kenzior Date: Mon, 8 Oct 2012 19:57:13 +0000 (-0500) Subject: stktest: Add DisplayText test sequence 7.1 X-Git-Tag: 1.12~260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=926f21aaac24620c7c8a9ca4d9a59d69a5f2a91d;p=platform%2Fupstream%2Fofono.git stktest: Add DisplayText test sequence 7.1 --- diff --git a/tools/stktest.c b/tools/stktest.c index cf70d7f..811c0c4 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -1236,6 +1236,18 @@ static DBusMessage *test_display_text_61(DBusMessage *msg, return dbus_message_new_method_return(msg); } +static DBusMessage *test_display_text_71(DBusMessage *msg, + const char *text, + unsigned char icon_id, + gboolean urgent) +{ + STKTEST_AGENT_ASSERT(g_str_equal(text, "10 Second")); + STKTEST_AGENT_ASSERT(icon_id == 0); + STKTEST_AGENT_ASSERT(urgent == FALSE); + + return NULL; +} + static void power_down_reply(DBusPendingCall *call, void *user_data) { __stktest_test_next(); @@ -1397,6 +1409,12 @@ static void __stktest_test_init(void) sizeof(display_text_response_611), test_display_text_61, expect_response_and_finish); + stktest_add_test("Display Text 7.1", "DisplayText", + display_text_711, sizeof(display_text_711), + display_text_response_711, + sizeof(display_text_response_711), + test_display_text_71, + expect_response_and_finish); } static void test_destroy(gpointer user_data)