diff options
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 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) |