summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-11-14 00:43:51 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-11-14 00:43:51 +0200
commit0abb764b1816e6a986c10c30444530e11d112cb1 (patch)
tree9f3ffc343095595b3f6391e7cf9cc8c3c7a01ca2 /tests
parent02ecee2de89f3225a6cd4bf87b0e4285bb1d06eb (diff)
Fix naming of nested Enums with short names
Diffstat (limited to 'tests')
-rw-r--r--tests/options.expected1
-rw-r--r--tests/options.proto11
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/options.expected b/tests/options.expected
index 61d9805e..93501430 100644
--- a/tests/options.expected
+++ b/tests/options.expected
@@ -3,3 +3,4 @@ char msgsize\[30\];
char fieldsize\[40\];
pb_callback_t int32_callback;
\sEnumValue1 = 1
+Message5_EnumValue1
diff --git a/tests/options.proto b/tests/options.proto
index 7eb2eb30..413d21b5 100644
--- a/tests/options.proto
+++ b/tests/options.proto
@@ -43,3 +43,14 @@ message EnumTest
{
required Enum1 field = 1 [default = EnumValue2];
}
+
+// Short enum names inside message
+message Message5
+{
+ enum Enum2
+ {
+ option (nanopb_enumopt).long_names = false;
+ EnumValue1 = 1;
+ }
+ required Enum2 field = 1 [default = EnumValue1];
+}