Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: components/tracing/test/example_proto/test_messages.proto

Issue 2217703002: Tracing V2: Field number constants for protobuf plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/tracing/test/example_proto/test_messages.proto
diff --git a/components/tracing/test/example_proto/test_messages.proto b/components/tracing/test/example_proto/test_messages.proto
index 588ec84f9d22ed403ce43c25f79bcd6bce54cee6..ef5a0526b284f8ff94dd5ac4d6dc9c71ee4fca30 100644
--- a/components/tracing/test/example_proto/test_messages.proto
+++ b/components/tracing/test/example_proto/test_messages.proto
@@ -73,3 +73,19 @@ message NestedA {
repeated NestedB repeated_a = 2;
optional NestedB.NestedC super_nested = 3;
}
+
+message CamelCaseFields {
+ // To check that any reasonable name converts to camel case correctly.
+ optional bool foo_bar_baz = 1;
+ optional bool barBaz = 2;
+ optional bool MooMoo = 3;
+ optional bool URLEncoder = 4;
+ optional bool XMap = 5;
+ optional bool UrLE_nco__der = 6;
+ optional bool __bigBang = 7;
+ optional bool U2 = 8;
+ optional bool bangBig__ = 9;
+
+ // Plugin should end up with error on this name.
+ // optional bool _ = 100;
Primiano Tucci (use gerrit) 2016/08/05 08:52:05 not sure what is the value of this comment here? I
+}

Powered by Google App Engine
This is Rietveld 408576698