diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-09-28 20:25:06 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-10-03 09:10:43 -0500 |
commit | 13d30230a3e1309340028c038631de1563ef3117 (patch) | |
tree | e411bc24c1ce85afb564dc430f44d6d3a955e02c | |
parent | c796e84051859bb3f5a7bb3275b622d0a9573642 (diff) | |
download | ofono-13d30230a3e1309340028c038631de1563ef3117.tar.bz2 |
stktest: Add DisplayText test sequence 3.1
-rw-r--r-- | tools/stktest.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c index 6a2f45b7..35314d94 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -1059,6 +1059,25 @@ static DBusMessage *test_display_text_21(DBusMessage *msg, return NULL; } +static DBusMessage *test_display_text_31(DBusMessage *msg, + const char *text, + unsigned char icon_id, + gboolean urgent) +{ + static const char *expected = "This command instructs the ME to display" + " a text message, and/or an icon " + "(see 6.5.4). It allows the " + "SIM to define the priority of that " + "message, and the text string format. " + "Two types of priority are defined:- " + "display normal priority text and/"; + STKTEST_AGENT_ASSERT(g_str_equal(text, expected)); + 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) { __stktest_test_next(); @@ -1162,6 +1181,11 @@ static void __stktest_test_init(void) display_text_response_211, sizeof(display_text_response_211), test_display_text_21, expect_response); + stktest_add_test("Display Text 3.1", "DisplayText", + display_text_311, sizeof(display_text_311), + display_text_response_311, + sizeof(display_text_response_311), + test_display_text_31, expect_response); } static void test_destroy(gpointer user_data) |