26 #include "../../codec.h"
30 int main(
int ,
char* [])
32 dccl::dlog.
connect(dccl::logger::ALL, &std::cerr);
36 codec.load<BytesMsg>();
37 codec.info<BytesMsg>(&dccl::dlog);
47 codec.encode(&encoded, msg_in);
49 assert(encoded.size() == 36);
52 codec.decode(encoded, &msg_out);
54 assert(msg_in.SerializeAsString() == msg_out.SerializeAsString());
56 std::cout <<
"all tests passed" << std::endl;