From 926f21aaac24620c7c8a9ca4d9a59d69a5f2a91d Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 8 Oct 2012 14:57:13 -0500 Subject: [PATCH] stktest: Add DisplayText test sequence 7.1 --- tools/stktest.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/stktest.c b/tools/stktest.c index cf70d7f1..811c0c41 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)