[Telepathy-commits] [telepathy-qt4/master] Fix text-chan test

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Feb 20 08:11:41 PST 2009


---
 tests/dbus/text-chan.cpp |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/tests/dbus/text-chan.cpp b/tests/dbus/text-chan.cpp
index 46260c1..59b9b26 100644
--- a/tests/dbus/text-chan.cpp
+++ b/tests/dbus/text-chan.cpp
@@ -249,12 +249,12 @@ void TestTextChan::testMessages()
     QVERIFY(!mChan->isReady(0, TextChannel::FeatureMessageSentSignal));
 
     QVERIFY(connect(mChan,
-                SIGNAL(messageReceived(const Telepathy::Client::Message &)),
-                SLOT(onMessageReceived(const Telepathy::Client::Message &))));
+                SIGNAL(messageReceived(const Telepathy::Client::ReceivedMessage &)),
+                SLOT(onMessageReceived(const Telepathy::Client::ReceivedMessage &))));
     QCOMPARE(received.size(), 0);
     QVERIFY(connect(mChan,
-                SIGNAL(pendingMessageRemoved(const Telepathy::Client::Message &)),
-                SLOT(onMessageRemoved(const Telepathy::Client::Message &))));
+                SIGNAL(pendingMessageRemoved(const Telepathy::Client::ReceivedMessage &)),
+                SLOT(onMessageRemoved(const Telepathy::Client::ReceivedMessage &))));
     QCOMPARE(removed.size(), 0);
 
     QVERIFY(connect(mChan,
@@ -351,7 +351,7 @@ void TestTextChan::testMessages()
             0U);
     QCOMPARE(m.part(1).value(QLatin1String("content-type")).variant().toString(),
             QString::fromAscii("text/plain"));
-    QCOMPARE(m.text(), QString::fromAscii("You said: One"));
+    QCOMPARE(m.text(), QString::fromAscii("One"));
 
     m = received.at(1);
     QCOMPARE(static_cast<uint>(m.messageType()),
@@ -366,7 +366,7 @@ void TestTextChan::testMessages()
             0U);
     QCOMPARE(m.part(1).value(QLatin1String("content-type")).variant().toString(),
             QString::fromAscii("text/plain"));
-    QCOMPARE(m.text(), QString::fromAscii("You said: Two"));
+    QCOMPARE(m.text(), QString::fromAscii("Two"));
 }
 
 void TestTextChan::testLegacyText()
@@ -384,12 +384,12 @@ void TestTextChan::testLegacyText()
     // as the Channel basics are ready
 
     QVERIFY(connect(mChan,
-                SIGNAL(messageReceived(const Telepathy::Client::Message &)),
-                SLOT(onMessageReceived(const Telepathy::Client::Message &))));
+                SIGNAL(messageReceived(const Telepathy::Client::ReceivedMessage &)),
+                SLOT(onMessageReceived(const Telepathy::Client::ReceivedMessage &))));
     QCOMPARE(received.size(), 0);
     QVERIFY(connect(mChan,
-                SIGNAL(pendingMessageRemoved(const Telepathy::Client::Message &)),
-                SLOT(onMessageRemoved(const Telepathy::Client::Message &))));
+                SIGNAL(pendingMessageRemoved(const Telepathy::Client::ReceivedMessage &)),
+                SLOT(onMessageRemoved(const Telepathy::Client::ReceivedMessage &))));
     QCOMPARE(removed.size(), 0);
 
     QVERIFY(connect(mChan,
-- 
1.5.6.5




More information about the telepathy-commits mailing list