diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-03-02 13:59:29 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-03-02 15:05:58 +0100 |
commit | 965f5c86e9a56045ca8b674a5c681d566583765f (patch) | |
tree | 75ee0a5bc1beacc02223e5e8553478920c1a11d4 /tests | |
parent | c10428e15665ad38f14a645d2b6790206169cbee (diff) |
add tp_text_channel_supports_message_type()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbus/text-channel.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/dbus/text-channel.c b/tests/dbus/text-channel.c index 7f9f257e..7704ebc8 100644 --- a/tests/dbus/text-channel.c +++ b/tests/dbus/text-channel.c @@ -201,6 +201,17 @@ test_properties (Test *test, message_types = tp_text_channel_get_message_types (test->channel); check_messages_types (message_types); + + g_assert (tp_text_channel_supports_message_type (test->channel, + TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL)); + g_assert (tp_text_channel_supports_message_type (test->channel, + TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION)); + g_assert (tp_text_channel_supports_message_type (test->channel, + TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE)); + g_assert (!tp_text_channel_supports_message_type (test->channel, + TP_CHANNEL_TEXT_MESSAGE_TYPE_AUTO_REPLY)); + g_assert (!tp_text_channel_supports_message_type (test->channel, + TP_CHANNEL_TEXT_MESSAGE_TYPE_DELIVERY_REPORT)); } static void |