summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-09 11:02:04 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-09 11:26:59 -0500
commit43a037992a93e4e3781eb127710643f526357c17 (patch)
treeed506682d3632bfd6cc79cbe8b1ba203676571b7 /tools
parent4e125b2d1042c8cce7b21a8fcc0ec35ee9381ea8 (diff)
downloadofono-43a037992a93e4e3781eb127710643f526357c17.tar.gz
stktest: Add GetInkey test sequence 4.1
Diffstat (limited to 'tools')
-rw-r--r--tools/stktest.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c
index e71de5e5..f52dc72e 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -1674,6 +1674,23 @@ static DBusMessage *test_get_inkey_32(DBusMessage *msg,
return reply;
}
+static DBusMessage *test_get_inkey_41(DBusMessage *msg,
+ const char *alpha,
+ unsigned char icon_id)
+{
+ DBusMessage *reply;
+ const char *ret = "Д";
+
+ STKTEST_AGENT_ASSERT(g_str_equal(alpha, "Enter"));
+ STKTEST_AGENT_ASSERT(icon_id == 0);
+
+ reply = dbus_message_new_method_return(msg);
+ dbus_message_append_args(reply, DBUS_TYPE_STRING, &ret,
+ DBUS_TYPE_INVALID);
+
+ return reply;
+}
+
static void power_down_reply(DBusPendingCall *call, void *user_data)
{
__stktest_test_next();
@@ -1973,6 +1990,12 @@ static void __stktest_test_init(void)
sizeof(get_inkey_response_321),
test_get_inkey_32,
expect_response_and_finish);
+ stktest_add_test("Get Inkey 4.1", "RequestKey",
+ get_inkey_411, sizeof(get_inkey_411),
+ get_inkey_response_411,
+ sizeof(get_inkey_response_411),
+ test_get_inkey_41,
+ expect_response_and_finish);
}
static void test_destroy(gpointer user_data)