stktest: Add DisplayText test sequence 7.1

This commit is contained in:
Denis Kenzior 2012-10-08 14:57:13 -05:00
parent 3246e7df1c
commit 926f21aaac
1 changed files with 18 additions and 0 deletions

View File

@ -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)