fe-read now supports multiple readable formats.

This commit is contained in:
David Given
2021-05-13 00:02:54 +02:00
parent 9d0804eff4
commit c2aae7ee18
3 changed files with 23 additions and 9 deletions

View File

@@ -64,11 +64,10 @@ static void test_config(void)
static void test_load(void)
{
extern const char testproto_pb[];
extern const int testproto_pb_size;
extern std::string testproto_pb();
TestProto proto;
bool r = proto.ParseFromString(std::string(testproto_pb, testproto_pb_size));
bool r = proto.ParseFromString(testproto_pb());
std::string s;
google::protobuf::TextFormat::PrintToString(proto, &s);