mirror of git://git.sysmocom.de/ofono
stktest: Add DisplayText test sequence 6.1
This commit is contained in:
parent
600548f75b
commit
0042dee660
|
@ -1224,6 +1224,18 @@ static DBusMessage *test_display_text_53(DBusMessage *msg,
|
||||||
return dbus_message_new_method_return(msg);
|
return dbus_message_new_method_return(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static DBusMessage *test_display_text_61(DBusMessage *msg,
|
||||||
|
const char *text,
|
||||||
|
unsigned char icon_id,
|
||||||
|
gboolean urgent)
|
||||||
|
{
|
||||||
|
STKTEST_AGENT_ASSERT(g_str_equal(text, "ЗДРАВСТВУЙТЕ"));
|
||||||
|
STKTEST_AGENT_ASSERT(icon_id == 0);
|
||||||
|
STKTEST_AGENT_ASSERT(urgent == FALSE);
|
||||||
|
|
||||||
|
return dbus_message_new_method_return(msg);
|
||||||
|
}
|
||||||
|
|
||||||
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();
|
||||||
|
@ -1379,6 +1391,12 @@ static void __stktest_test_init(void)
|
||||||
sizeof(display_text_response_531a),
|
sizeof(display_text_response_531a),
|
||||||
test_display_text_53,
|
test_display_text_53,
|
||||||
expect_response_and_finish);
|
expect_response_and_finish);
|
||||||
|
stktest_add_test("Display Text 6.1", "DisplayText",
|
||||||
|
display_text_611, sizeof(display_text_611),
|
||||||
|
display_text_response_611,
|
||||||
|
sizeof(display_text_response_611),
|
||||||
|
test_display_text_61,
|
||||||
|
expect_response_and_finish);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_destroy(gpointer user_data)
|
static void test_destroy(gpointer user_data)
|
||||||
|
|
Loading…
Reference in New Issue