aboutsummaryrefslogtreecommitdiff
path: root/objectivec/Tests/unittest_objc.proto
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2016-03-08 09:29:49 -0500
committerThomas Van Lenten <thomasvl@google.com>2016-03-08 09:29:49 -0500
commit1bf4b38f29d6cc3f24ad1e0b6c3339420bd719be (patch)
tree5490ef3898bcef4f43f53a45d255bcd611da341f /objectivec/Tests/unittest_objc.proto
parent3dd323818911a486bc62d172988aa23f68e64a7c (diff)
downloadprotobuf-1bf4b38f29d6cc3f24ad1e0b6c3339420bd719be.tar.gz
protobuf-1bf4b38f29d6cc3f24ad1e0b6c3339420bd719be.tar.bz2
protobuf-1bf4b38f29d6cc3f24ad1e0b6c3339420bd719be.zip
Fix up handing of fields with leading names that should be all caps.
Add a compile test to confirm things are working as expected.
Diffstat (limited to 'objectivec/Tests/unittest_objc.proto')
-rw-r--r--objectivec/Tests/unittest_objc.proto12
1 files changed, 12 insertions, 0 deletions
diff --git a/objectivec/Tests/unittest_objc.proto b/objectivec/Tests/unittest_objc.proto
index 3bb92761..9483cb1d 100644
--- a/objectivec/Tests/unittest_objc.proto
+++ b/objectivec/Tests/unittest_objc.proto
@@ -112,6 +112,18 @@ enum retain {
serializedSize = 6;
}
+message ObjCPropertyNaming {
+ // Test that the properties properly get things all caps.
+ optional string url = 1;
+ optional string thumbnail_url = 2;
+ optional string url_foo = 3;
+ optional string some_url_blah = 4;
+ optional string http = 5;
+ optional string https = 6;
+ // This one doesn't.
+ repeated string urls = 7;
+}
+
// EnumValueShortName: The short names shouldn't get suffixes/prefixes.
enum Foo {
SERIALIZED_SIZE = 1;