diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-11-02 13:18:42 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-11-02 13:18:42 -0500 |
commit | f01d9691ea619c939999cafe30f987311ad83a6c (patch) | |
tree | 85b60032e0f1bbf752e849515985cfc943df050c /tools | |
parent | 5b463f219b27b04b92d3af6b87176787cf103018 (diff) | |
download | ofono-f01d9691ea619c939999cafe30f987311ad83a6c.tar.bz2 |
stktest: Add Play Tone test sequence 5.1
Diffstat (limited to 'tools')
-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 94360926..f0a2dfd2 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -3314,6 +3314,18 @@ PLAY_TONE_4X_TEMPLATE(10a, "</div>") PLAY_TONE_4X_TEMPLATE(10b, "Text Attribute 2") +static DBusMessage *test_play_tone_51(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, "中一")); + 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(); @@ -4316,6 +4328,24 @@ static void __stktest_test_init(void) sizeof(play_tone_response_4102), test_play_tone_410b, expect_response_and_finish); + stktest_add_test("Play Tone 5.1a", "PlayTone", + play_tone_511, sizeof(play_tone_511), + play_tone_response_511, + sizeof(play_tone_response_511), + test_play_tone_51, + expect_response_and_finish); + stktest_add_test("Play Tone 5.1b", "PlayTone", + play_tone_512, sizeof(play_tone_512), + play_tone_response_512, + sizeof(play_tone_response_512), + test_play_tone_51, + expect_response_and_finish); + stktest_add_test("Play Tone 5.1c", "PlayTone", + play_tone_513, sizeof(play_tone_513), + play_tone_response_513, + sizeof(play_tone_response_513), + test_play_tone_51, + expect_response_and_finish); } static void test_destroy(gpointer user_data) |