summaryrefslogtreecommitdiffstats
path: root/tools/stktest.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-08 12:56:26 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-08 12:56:26 -0500
commit0042dee6601655c82dd8399eb1282efacb84ab6a (patch)
tree244d8c0c0d5c9c18f1f52e1f9a59ff95072f5762 /tools/stktest.c
parent600548f75bd2c0126985e1858ce791739be065b7 (diff)
downloadofono-0042dee6601655c82dd8399eb1282efacb84ab6a.tar.bz2
stktest: Add DisplayText test sequence 6.1
Diffstat (limited to 'tools/stktest.c')
-rw-r--r--tools/stktest.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c
index 446ffc4b..cf70d7f1 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -1224,6 +1224,18 @@ static DBusMessage *test_display_text_53(DBusMessage *msg,
return dbus_message_new_method_return(msg);
}
+static DBusMessage *test_display_text_61(DBusMessage *msg,
+ const char *text,
+ unsigned char icon_id,
+ gboolean urgent)
+{
+ STKTEST_AGENT_ASSERT(g_str_equal(text, "ЗДРАВСТВУЙТЕ"));
+ STKTEST_AGENT_ASSERT(icon_id == 0);
+ STKTEST_AGENT_ASSERT(urgent == FALSE);
+
+ return dbus_message_new_method_return(msg);
+}
+
static void power_down_reply(DBusPendingCall *call, void *user_data)
{
__stktest_test_next();
@@ -1379,6 +1391,12 @@ static void __stktest_test_init(void)
sizeof(display_text_response_531a),
test_display_text_53,
expect_response_and_finish);
+ stktest_add_test("Display Text 6.1", "DisplayText",
+ display_text_611, sizeof(display_text_611),
+ display_text_response_611,
+ sizeof(display_text_response_611),
+ test_display_text_61,
+ expect_response_and_finish);
}
static void test_destroy(gpointer user_data)