Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3302018
D4512.id14425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4512.id14425.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4512: [services] Tunnelbroker - Change `AmqpManager.send()` method arguments to use `MessageItem` in tests
Attached
Detach File
Event Timeline
Log In to Comment