summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-18 13:45:35 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-18 13:45:35 -0500
commit31eb35ea7eca6902c3a4fa64ca8b3f4a4d60fbf9 (patch)
treeff6ea90446c955ed447de20a0f2888d090105029 /tools
parentae4022effaa471447892886b6358f39a2969f3a5 (diff)
downloadofono-31eb35ea7eca6902c3a4fa64ca8b3f4a4d60fbf9.tar.bz2
stktest: Add GetInput test sequence 2.1
Diffstat (limited to 'tools')
-rw-r--r--tools/stktest.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c
index 8ee699d5..b7890738 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -2406,6 +2406,25 @@ static DBusMessage *test_get_input_110(DBusMessage *msg,
return reply;
}
+static DBusMessage *test_get_input_21(DBusMessage *msg,
+ const char *alpha,
+ unsigned char icon_id,
+ const char *def_input,
+ unsigned char min, unsigned char max,
+ gboolean hide_typing)
+{
+ DBusMessage *reply;
+
+ STKTEST_AGENT_ASSERT(g_str_equal(alpha, "&lt;TIME-OUT&gt;"));
+ STKTEST_AGENT_ASSERT(icon_id == 0);
+ STKTEST_AGENT_ASSERT(g_str_equal(def_input, ""));
+ STKTEST_AGENT_ASSERT(min == 0);
+ STKTEST_AGENT_ASSERT(max == 10);
+ STKTEST_AGENT_ASSERT(hide_typing == FALSE);
+
+ return NULL;
+}
+
static void power_down_reply(DBusPendingCall *call, void *user_data)
{
__stktest_test_next();
@@ -2910,6 +2929,12 @@ static void __stktest_test_init(void)
sizeof(get_input_response_1101),
test_get_input_110,
expect_response_and_finish);
+ stktest_add_test("Get Input 2.1", "RequestDigits",
+ get_input_211, sizeof(get_input_211),
+ get_input_response_211,
+ sizeof(get_input_response_211),
+ test_get_input_21,
+ expect_response_and_finish);
}
static void test_destroy(gpointer user_data)