summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-09 14:26:22 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-09 14:26:22 -0500
commit56b7d0dede3b7716065d704b75692ec2f1e91d69 (patch)
tree3e03e18cabf914a215438ac67a205a712e6c08af /tools
parentf55e160f62335250516e41eb791caa154c6e3386 (diff)
downloadofono-56b7d0dede3b7716065d704b75692ec2f1e91d69.tar.bz2
stktest: Add GetInkey test sequence 13.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 cd878973..d025f9ac 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -2079,6 +2079,23 @@ static DBusMessage *test_get_inkey_122(DBusMessage *msg,
return reply;
}
+static DBusMessage *test_get_inkey_131(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();
@@ -2517,6 +2534,12 @@ static void __stktest_test_init(void)
sizeof(get_inkey_response_1221),
test_get_inkey_122,
expect_response_and_finish);
+ stktest_add_test("Get Inkey 13.1", "RequestKey",
+ get_inkey_1311, sizeof(get_inkey_1311),
+ get_inkey_response_1311,
+ sizeof(get_inkey_response_1311),
+ test_get_inkey_131,
+ expect_response_and_finish);
}
static void test_destroy(gpointer user_data)