From 25a234ce88c4f22e36d8477fede0035f42789331 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 25 May 2011 14:04:33 +0200 Subject: [PATCH] automatic-proxy-factory: prepare TP_CHANNEL_FEATURE_PASSWORD --- telepathy-glib/automatic-proxy-factory.c | 6 +++++- tests/dbus/client-channel-factory.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/telepathy-glib/automatic-proxy-factory.c b/telepathy-glib/automatic-proxy-factory.c index ea12409..3cea3e2 100644 --- a/telepathy-glib/automatic-proxy-factory.c +++ b/telepathy-glib/automatic-proxy-factory.c @@ -53,7 +53,8 @@ * * * - * %TP_CHANNEL_FEATURE_CORE and %TP_CHANNEL_FEATURE_GROUP for all + * %TP_CHANNEL_FEATURE_CORE, %TP_CHANNEL_FEATURE_GROUP + * and %TP_CHANNEL_FEATURE_PASSWORD for all * type of channels. * * @@ -185,6 +186,9 @@ tp_automatic_proxy_factory_dup_channel_features_impl (TpChannel *channel) feature = TP_CHANNEL_FEATURE_GROUP; g_array_append_val (features, feature); + feature = TP_CHANNEL_FEATURE_PASSWORD; + g_array_append_val (features, feature); + if (TP_IS_TEXT_CHANNEL (channel)) { feature = TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES; diff --git a/tests/dbus/client-channel-factory.c b/tests/dbus/client-channel-factory.c index e68ec0c..4a2abe4 100644 --- a/tests/dbus/client-channel-factory.c +++ b/tests/dbus/client-channel-factory.c @@ -205,9 +205,10 @@ test_auto_stream_tube (Test *test, features = tp_client_channel_factory_dup_channel_features (test->factory, chan); - g_assert_cmpuint (features->len, ==, 2); + g_assert_cmpuint (features->len, ==, 3); g_assert (array_contains_feature (features, TP_CHANNEL_FEATURE_CORE)); g_assert (array_contains_feature (features, TP_CHANNEL_FEATURE_GROUP)); + g_assert (array_contains_feature (features, TP_CHANNEL_FEATURE_PASSWORD)); g_free (chan_path); g_hash_table_unref (props); -- 1.7.4.1