diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-24 20:46:14 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-24 20:46:14 +0000 |
commit | bccf435f7ec289ad7f991ff5c58b3eb4b9224545 (patch) | |
tree | a39700f194f1d449d2274c200acad3019c5b7513 /storageapi/src/tests | |
parent | 286ff1b50c40b50ab59ea2487e66c1cfae258384 (diff) |
Move the error description to a separate allocation as it is rarely used.
This reduces the size of frequently used objects.
Diffstat (limited to 'storageapi/src/tests')
-rw-r--r-- | storageapi/src/tests/mbusprot/storageprotocoltest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp index c2ebffb23e8..01719fbd7ec 100644 --- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp +++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp @@ -816,13 +816,13 @@ TEST_P(StorageProtocolTest, serialized_size_is_used_to_set_approx_size_of_storag } TEST_P(StorageProtocolTest, track_memory_footprint_for_some_messages) { - EXPECT_EQ(136u, sizeof(StorageReply)); - EXPECT_EQ(160u, sizeof(BucketReply)); - EXPECT_EQ(192u, sizeof(BucketInfoReply)); - EXPECT_EQ(336u, sizeof(PutReply)); - EXPECT_EQ(320u, sizeof(UpdateReply)); - EXPECT_EQ(312u, sizeof(RemoveReply)); - EXPECT_EQ(400u, sizeof(GetReply)); + EXPECT_EQ(80u, sizeof(StorageReply)); + EXPECT_EQ(104u, sizeof(BucketReply)); + EXPECT_EQ(136u, sizeof(BucketInfoReply)); + EXPECT_EQ(280u, sizeof(PutReply)); + EXPECT_EQ(264u, sizeof(UpdateReply)); + EXPECT_EQ(256u, sizeof(RemoveReply)); + EXPECT_EQ(344u, sizeof(GetReply)); EXPECT_EQ(80u, sizeof(StorageCommand)); EXPECT_EQ(104u, sizeof(BucketCommand)); EXPECT_EQ(104u, sizeof(BucketInfoCommand)); |