summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-31 11:55:37 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-31 16:14:27 -0500
commite42523fd04264032640d0afdfbd2859b67855849 (patch)
tree0801dcb4130affbad13afa36e7ef675ffb4453bc
parentc6158d739ab04ffe33256c66cdaecabd9b3ec769 (diff)
downloadofono-e42523fd04264032640d0afdfbd2859b67855849.tar.bz2
stktest: Add PlayTone test sequence 2.1
-rw-r--r--tools/stktest.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c
index b8c8d2c7..5783ae6f 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -3155,6 +3155,18 @@ static DBusMessage *test_play_tone_11o(DBusMessage *msg,
return dbus_message_new_method_return(msg);
}
+static DBusMessage *test_play_tone_21(DBusMessage *msg,
+ const char *tone,
+ const char *text,
+ unsigned char icon_id)
+{
+ STKTEST_AGENT_ASSERT(g_str_equal(tone, "positive-acknowledgement"));
+ STKTEST_AGENT_ASSERT(g_str_equal(text, CYRILLIC));
+ STKTEST_AGENT_ASSERT(icon_id == 0);
+
+ return dbus_message_new_method_return(msg);
+}
+
static void power_down_reply(DBusPendingCall *call, void *user_data)
{
__stktest_test_next();
@@ -3959,6 +3971,24 @@ static void __stktest_test_init(void)
sizeof(play_tone_response_1115),
test_play_tone_11o,
expect_response_and_finish);
+ stktest_add_test("Play Tone 2.1a", "PlayTone",
+ play_tone_211, sizeof(play_tone_211),
+ play_tone_response_211,
+ sizeof(play_tone_response_211),
+ test_play_tone_21,
+ expect_response_and_finish);
+ stktest_add_test("Play Tone 2.1b", "PlayTone",
+ play_tone_212, sizeof(play_tone_212),
+ play_tone_response_212,
+ sizeof(play_tone_response_212),
+ test_play_tone_21,
+ expect_response_and_finish);
+ stktest_add_test("Play Tone 2.1c", "PlayTone",
+ play_tone_213, sizeof(play_tone_213),
+ play_tone_response_213,
+ sizeof(play_tone_response_213),
+ test_play_tone_21,
+ expect_response_and_finish);
}
static void test_destroy(gpointer user_data)