diff options
author | Philip Rauwolf <rauwolf@itestra.de> | 2013-02-27 10:26:39 +0100 |
---|---|---|
committer | Philip Rauwolf <rauwolf@itestra.de> | 2013-02-27 10:26:39 +0100 |
commit | c887df9af2b026d41ea2eebc9de5f05150edf5e0 (patch) | |
tree | 3a060d53f8edef8295b3a000c3965b18238a06a5 | |
parent | c7c4c9e955f485741077cbd41dcd7790a7ff724d (diff) | |
download | genivi-common-api-dbus-runtime-c887df9af2b026d41ea2eebc9de5f05150edf5e0.tar.gz |
Corrected length expectation for map-datatypes in OutputStreamTest
-rw-r--r-- | src/test/DBusOutputStreamTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/DBusOutputStreamTest.cpp b/src/test/DBusOutputStreamTest.cpp index fbc3ad7..34627d8 100644 --- a/src/test/DBusOutputStreamTest.cpp +++ b/src/test/DBusOutputStreamTest.cpp @@ -771,8 +771,8 @@ TEST_F(OutputStreamTest, WritesEnumKeyedMaps) { CommonAPI::DBus::DBusOutputStream outStream(message); //array length (4) + struct-padding (4) + - // 3 * (sizeof(int) + sizeof(string)) + (sizeof(int) + sizeof(string)) - size_t sizeOfBody = 4 + 4 + 3 * (4 + 8) + (4 + 8); + // 3 * (sizeof(int) + sizeof(string) + struct-padding) + (sizeof(int) + sizeof(string)) + size_t sizeOfBody = 4 + 4 + 3 * (4 + 8 + 4) + (4 + 8); outStream.reserveMemory(sizeOfBody); outStream << testEnumMap; outStream.flush(); |