summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-08 14:57:13 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-08 14:57:13 -0500
commit926f21aaac24620c7c8a9ca4d9a59d69a5f2a91d (patch)
treeed8e5bdc1b32dc40e13ba1987efa812a2561d993 /tools
parent3246e7df1cdf013f25e12e4a486cd2c4c4bdcd27 (diff)
downloadofono-926f21aaac24620c7c8a9ca4d9a59d69a5f2a91d.tar.gz
stktest: Add DisplayText test sequence 7.1
Diffstat (limited to 'tools')
-rw-r--r--tools/stktest.c18
1 files changed, 18 insertions, 0 deletions
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)