test packet serialization/deserialization

This commit is contained in:
Mathieu Lacage
2007-08-04 16:06:59 +02:00
parent 7d5a47afe9
commit 25c33df302

View File

@@ -416,6 +416,15 @@ PacketMetadataTest::CheckHistory (Packet p, const char *file, int line, uint32_t
{ \
ok = false; \
} \
Buffer buffer; \
buffer = p.Serialize (); \
Packet otherPacket; \
otherPacket.Deserialize (buffer); \
if (!CheckHistory (otherPacket, __FILE__, \
__LINE__, __VA_ARGS__)) \
{ \
ok = false; \
} \
}
bool