Просмотр исходного кода

Added a new protobuf message to tests with nested messages.

Bart Hertog 6 лет назад
Родитель
Сommit
660573b053
2 измененных файлов с 18 добавлено и 0 удалено
  1. 2 0
      build_test.sh
  2. 16 0
      test/proto/nested_message.proto

+ 2 - 0
build_test.sh

@@ -3,10 +3,12 @@
 # Generate sources using the EAMS plugin.
 mkdir -p ./build/EAMS
 protoc --plugin=protoc-gen-eams=protoc-gen-eams -I./test/proto --eams_out=./build/EAMS ./test/proto/simple_types.proto
+protoc --plugin=protoc-gen-eams=protoc-gen-eams -I./test/proto --eams_out=./build/EAMS ./test/proto/nested_message.proto
 
 # For validation generate the same message using google code.
 mkdir -p ./build/google
 protoc -I./test/proto --cpp_out=./build/google ./test/proto/simple_types.proto
+protoc -I./test/proto --cpp_out=./build/google ./test/proto/nested_message.proto
 
 # Build the tests
 mkdir -p build/test

+ 16 - 0
test/proto/nested_message.proto

@@ -0,0 +1,16 @@
+
+// This file is used to test the wire formatter class.
+
+syntax = "proto3";
+
+message message_a {
+  int32 x   = 1;
+  float y   = 2;
+  sint64 z  = 3;
+}
+
+message message_b {
+  double a  = 1;
+  double b  = 2;
+  message_a msg_c = 3;
+}