27 #include "../../codec.h"
31 int main(
int ,
char* [])
33 dccl::dlog.
connect(dccl::logger::ALL, &std::cerr);
37 codec.load<BytesMsg>();
38 codec.info<BytesMsg>(&dccl::dlog);
46 codec.encode(&encoded, msg_in);
49 codec.decode(encoded, &msg_out);
51 assert(msg_in.SerializeAsString() == msg_out.SerializeAsString());
53 std::cout <<
"all tests passed" << std::endl;