blob: 23ff4a09376f656c3dbd60fd56bac8f1e7d9e94a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "Swiften/Serializer/PayloadSerializers/UnitTest/PayloadsSerializer.h"
#include <cppunit/extensions/HelperMacros.h>
#include "Swiften/Serializer/PayloadSerializer.h"
namespace Swift {
String PayloadsSerializer::serialize(boost::shared_ptr<Payload> payload) {
PayloadSerializer* serializer = serializers.getPayloadSerializer(payload);
if (serializer) {
return serializer->serialize(payload);
}
else {
CPPUNIT_ASSERT(false);
return "";
}
}
}
|