Page MenuHomePhabricator

D4512.id14425.diff
No OneTemporary

D4512.id14425.diff

diff --git a/services/tunnelbroker/test/AmqpManagerTest.cpp b/services/tunnelbroker/test/AmqpManagerTest.cpp
--- a/services/tunnelbroker/test/AmqpManagerTest.cpp
+++ b/services/tunnelbroker/test/AmqpManagerTest.cpp
@@ -35,10 +35,9 @@
"iGhpnX7Hp4xpBL3h2IkvGviDRQ98UvW0ugwUuPxm1NOQpjLG5dPoqQ0jrMst0Bl5rgPw"
"ajjNGsUWmp9r0ST0wRQXrQcY30PoSoqKSlCEgFMLzHWLrPQ86QFyCICismGSe7iBIqdD"
"6d37StvXBzfJoZVU79UeOF2bFvb3DNoArEOe";
- EXPECT_EQ(
- AmqpManager::getInstance().send(
- messageID, toDeviceID, fromDeviceID, payload),
- true);
+ const database::MessageItem messageItem(
+ messageID, toDeviceID, fromDeviceID, payload, "");
+ EXPECT_EQ(AmqpManager::getInstance().send(messageItem), true);
DeliveryBrokerMessage receivedMessage =
DeliveryBroker::getInstance().pop(toDeviceID);
EXPECT_EQ(messageID, receivedMessage.messageID);
@@ -54,10 +53,9 @@
const std::string fromDeviceID =
"web:" + tools::generateRandomString(DEVICEID_CHAR_LENGTH);
const std::string payload = tools::generateRandomString(512);
- EXPECT_EQ(
- AmqpManager::getInstance().send(
- messageID, toDeviceID, fromDeviceID, payload),
- true);
+ const database::MessageItem messageItem(
+ messageID, toDeviceID, fromDeviceID, payload, "");
+ EXPECT_EQ(AmqpManager::getInstance().send(messageItem), true);
DeliveryBrokerMessage receivedMessage =
DeliveryBroker::getInstance().pop(toDeviceID);
EXPECT_EQ(messageID, receivedMessage.messageID)

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 5:51 AM (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2536870
Default Alt Text
D4512.id14425.diff (1 KB)

Event Timeline