mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
fe-read now supports multiple readable formats.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user