mirror of git://git.sysmocom.de/ofono
stktest: Add GetInput test sequence 2.1
This commit is contained in:
parent
ae4022effa
commit
31eb35ea7e
|
@ -2406,6 +2406,25 @@ static DBusMessage *test_get_input_110(DBusMessage *msg,
|
||||||
return reply;
|
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, "<TIME-OUT>"));
|
||||||
|
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)
|
static void power_down_reply(DBusPendingCall *call, void *user_data)
|
||||||
{
|
{
|
||||||
__stktest_test_next();
|
__stktest_test_next();
|
||||||
|
@ -2910,6 +2929,12 @@ static void __stktest_test_init(void)
|
||||||
sizeof(get_input_response_1101),
|
sizeof(get_input_response_1101),
|
||||||
test_get_input_110,
|
test_get_input_110,
|
||||||
expect_response_and_finish);
|
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)
|
static void test_destroy(gpointer user_data)
|
||||||
|
|
Loading…
Reference in New Issue