summaryrefslogtreecommitdiffstats
path: root/tests/callbacks.proto
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-09-12 18:53:33 +0000
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-09-12 18:53:33 +0000
commitd4abb63c052dc9d4c23ce72e498b4c7483f3b7cb (patch)
tree340d5abed388ef4abda42f6e4208948abfb9efb9 /tests/callbacks.proto
parent35814517ad9da0edad3905269ea41facfb120f3c (diff)
Tests for callback fields
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@974 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'tests/callbacks.proto')
-rw-r--r--tests/callbacks.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/callbacks.proto b/tests/callbacks.proto
new file mode 100644
index 00000000..7bc79002
--- /dev/null
+++ b/tests/callbacks.proto
@@ -0,0 +1,16 @@
+/* Todo: write tests for the rest of these fields, currently only stringvalue
+ * is tested.
+ */
+
+message SubMessage {
+ optional int32 int32value = 1;
+}
+
+message TestMessage {
+ optional string stringvalue = 1;
+ optional int32 int32value = 2;
+ optional fixed32 fixed32value = 3;
+ optional fixed64 fixed64value = 4;
+ optional SubMessage submsg = 5;
+}
+