diff options
author | Mark D. Roth <roth@google.com> | 2016-10-07 09:02:28 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-10-07 09:02:28 -0700 |
commit | 15195741d7758a80bcf901e7db05b3c57654c4a3 (patch) | |
tree | 1a7cd9f6b80235306559176a34bcf0e5c7ec4407 /third_party/nanopb/tests/inline/inline.proto | |
parent | 2137cd8e9b84fd2f602a369ee5922a6fefce2efc (diff) | |
parent | e5c744d9850a763639b2e7001cf2487e1c76133b (diff) |
Merge remote-tracking branch 'upstream/master' into rename_client_config
Diffstat (limited to 'third_party/nanopb/tests/inline/inline.proto')
-rw-r--r-- | third_party/nanopb/tests/inline/inline.proto | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/nanopb/tests/inline/inline.proto b/third_party/nanopb/tests/inline/inline.proto new file mode 100644 index 0000000000..6e511f0a25 --- /dev/null +++ b/third_party/nanopb/tests/inline/inline.proto @@ -0,0 +1,17 @@ +/* Test nanopb option parsing. + * options.expected lists the patterns that are searched for in the output. + */ + +syntax = "proto2"; + +import "nanopb.proto"; + +message Message1 +{ + required bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 32]; +} + +message Message2 +{ + optional bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 64]; +} |