summaryrefslogtreecommitdiffstats
path: root/messagebus
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-11-18 16:47:50 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-11-18 18:22:16 +0000
commit78bfefbf3fd11a655560c7237bf4106aca2458b2 (patch)
tree77573fff526bf8f4842fc7a2a5dc0d2af0b2db3c /messagebus
parenteb28759a307ff298e2125d6d3deff260c941ec45 (diff)
Use a std:.unique_ptr to make Trace a thin wrapper for TraceNode to make the happy path fast.
Diffstat (limited to 'messagebus')
-rw-r--r--messagebus/src/tests/simpleprotocol/simpleprotocol.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp b/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp
index 091c7b668a1..bc4fc80abad 100644
--- a/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp
+++ b/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp
@@ -32,9 +32,9 @@ Test::Main()
TEST_FLUSH();
{
// test SimpleMessage
- EXPECT_EQUAL(160u, sizeof(Routable));
- EXPECT_EQUAL(208u, sizeof(Message));
- EXPECT_EQUAL(288u, sizeof(SimpleMessage));
+ EXPECT_EQUAL(56u, sizeof(Routable));
+ EXPECT_EQUAL(104u, sizeof(Message));
+ EXPECT_EQUAL(184u, sizeof(SimpleMessage));
auto msg = std::make_unique<SimpleMessage>("test");
EXPECT_TRUE(!msg->isReply());
EXPECT_TRUE(msg->getProtocol() == SimpleProtocol::NAME);
@@ -52,9 +52,9 @@ Test::Main()
TEST_FLUSH();
{
// test SimpleReply
- EXPECT_EQUAL(160u, sizeof(Routable));
- EXPECT_EQUAL(200u, sizeof(Reply));
- EXPECT_EQUAL(264u, sizeof(SimpleReply));
+ EXPECT_EQUAL(56u, sizeof(Routable));
+ EXPECT_EQUAL(96u, sizeof(Reply));
+ EXPECT_EQUAL(160u, sizeof(SimpleReply));
auto reply = std::make_unique<SimpleReply>("reply");
EXPECT_TRUE(reply->isReply());
EXPECT_TRUE(reply->getProtocol() == SimpleProtocol::NAME);