diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-10-18 13:10:44 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-10-18 13:10:44 -0500 |
commit | 6229f263104035ab0b5616966a1fc1aa548fc359 (patch) | |
tree | 72584a8dcca173b7dcca7e88c6df18732baf96b3 /tools/stktest.c | |
parent | ca2467fc6dde7575fabefa5075e0bb4c00b19ef8 (diff) | |
download | ofono-6229f263104035ab0b5616966a1fc1aa548fc359.tar.gz |
stktest: Add GetInput test sequence 1.10
Diffstat (limited to 'tools/stktest.c')
-rw-r--r-- | tools/stktest.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c index 27c6a354..8ee699d5 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -2382,6 +2382,30 @@ static DBusMessage *test_get_input_19(DBusMessage *msg, return reply; } +static DBusMessage *test_get_input_110(DBusMessage *msg, + const char *alpha, + unsigned char icon_id, + const char *def_input, + unsigned char min, unsigned char max, + gboolean hide_typing) +{ + DBusMessage *reply; + const char *ret = "12345"; + + STKTEST_AGENT_ASSERT(g_str_equal(alpha, "")); + STKTEST_AGENT_ASSERT(icon_id == 0); + STKTEST_AGENT_ASSERT(g_str_equal(def_input, "")); + STKTEST_AGENT_ASSERT(min == 1); + STKTEST_AGENT_ASSERT(max == 5); + STKTEST_AGENT_ASSERT(hide_typing == FALSE); + + 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(); @@ -2880,6 +2904,12 @@ static void __stktest_test_init(void) sizeof(get_input_response_191a), test_get_input_19, expect_response_and_finish); + stktest_add_test("Get Input 1.10", "RequestDigits", + get_input_1101, sizeof(get_input_1101), + get_input_response_1101, + sizeof(get_input_response_1101), + test_get_input_110, + expect_response_and_finish); } static void test_destroy(gpointer user_data) |