diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-13 20:26:45 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-13 20:26:45 +0000 |
| commit | 717b145c2dbd278b4fa30df10d106401f8cea6b4 (patch) | |
| tree | 2a763720a117fe3e3188562bf9ea1a92c0d35c22 /tests/tests.cpp | |
| parent | aeaefe5529a8b7d6d3af78c8755a1be599c120d2 (diff) | |
| download | qxmpp-717b145c2dbd278b4fa30df10d106401f8cea6b4.tar.gz | |
use hex for photoHash instead of base64
Diffstat (limited to 'tests/tests.cpp')
| -rw-r--r-- | tests/tests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp index 3270a81f..8c3ca61f 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -437,7 +437,7 @@ void TestPackets::testPresenceWithVCardUpdate() "<status>In a meeting</status>" "<priority>5</priority>" "<x xmlns=\"vcard-temp:x:update\">" - "<photo>Ve0tKBkyTOPyZrekN6VJl6ZZZfQ=</photo>" + "<photo>73b908bc</photo>" "</x>" "</presence>"); @@ -448,7 +448,7 @@ void TestPackets::testPresenceWithVCardUpdate() QCOMPARE(presence.status().type(), QXmppPresence::Status::Away); QCOMPARE(presence.status().statusText(), QString("In a meeting")); QCOMPARE(presence.status().priority(), 5); - QCOMPARE(presence.photoHash(), QByteArray::fromBase64("Ve0tKBkyTOPyZrekN6VJl6ZZZfQ=")); + QCOMPARE(presence.photoHash(), QByteArray::fromHex("73b908bc")); QCOMPARE(presence.vCardUpdateType(), QXmppPresence::PhotoAdvertised); serializePacket(presence, xml); } @@ -461,7 +461,7 @@ void TestPackets::testPresenceWithCapability() "<status>In a meeting</status>" "<priority>5</priority>" "<x xmlns=\"vcard-temp:x:update\">" - "<photo>Ve0tKBkyTOPyZrekN6VJl6ZZZfQ=</photo>" + "<photo>73b908bc</photo>" "</x>" "<c xmlns=\"http://jabber.org/protocol/caps\" hash=\"sha-1\" node=\"http://code.google.com/p/qxmpp\" ver=\"QgayPKawpkPSDYmwT/WM94uAlu0=\"/>" "</presence>"); @@ -473,7 +473,7 @@ void TestPackets::testPresenceWithCapability() QCOMPARE(presence.status().type(), QXmppPresence::Status::Away); QCOMPARE(presence.status().statusText(), QString("In a meeting")); QCOMPARE(presence.status().priority(), 5); - QCOMPARE(presence.photoHash(), QByteArray::fromBase64("Ve0tKBkyTOPyZrekN6VJl6ZZZfQ=")); + QCOMPARE(presence.photoHash(), QByteArray::fromHex("73b908bc=")); QCOMPARE(presence.vCardUpdateType(), QXmppPresence::PhotoAdvertised); QCOMPARE(presence.capabilityHash(), QString("sha-1")); QCOMPARE(presence.capabilityNode(), QString("http://code.google.com/p/qxmpp")); |
