diff options
author | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-08-23 18:50:09 +0000 |
---|---|---|
committer | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-08-23 18:50:09 +0000 |
commit | a3534170212675e0c7d3d89e23838e25f3664316 (patch) | |
tree | 68ab25766687892ed319fed8d6afa5f0ace44556 /tests/unittestproto.proto | |
parent | 64ac18c8848d3071a16065c84fca3b5e7210ce95 (diff) |
More unittests
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@966 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'tests/unittestproto.proto')
-rw-r--r-- | tests/unittestproto.proto | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/unittestproto.proto b/tests/unittestproto.proto new file mode 100644 index 00000000..c8a39dd6 --- /dev/null +++ b/tests/unittestproto.proto @@ -0,0 +1,28 @@ +import 'nanopb.proto'; + +message IntegerArray { + repeated int32 data = 1 [(nanopb).max_count = 10]; +} + +message FloatArray { + repeated float data = 1 [(nanopb).max_count = 10]; +} + +message CallbackArray { + // We cheat a bit and use this message for testing other types, too. + // Nanopb does not care about the actual defined data type for callback + // fields. + repeated int32 data = 1; +} + +message IntegerContainer { + required IntegerArray submsg = 1; +} + +message CallbackContainer { + required CallbackArray submsg = 1; +} + +message CallbackContainerContainer { + required CallbackContainer submsg = 1; +} |