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

Unified Diff: components/tracing/proto_zero_test/mock_messages.proto

Issue 2083373002: proto_zero_plugin [NOT FOR REVIEW]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: full_featured_will_split_into_smaller_CLs_for_review Created 4 years, 5 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/proto_zero_test/mock_messages.proto
diff --git a/components/tracing/proto_zero_test/mock_messages.proto b/components/tracing/proto_zero_test/mock_messages.proto
new file mode 100644
index 0000000000000000000000000000000000000000..04aec95e3a4bc51dd92ffc913bfa9514ecd93368
--- /dev/null
+++ b/components/tracing/proto_zero_test/mock_messages.proto
@@ -0,0 +1,60 @@
+syntax = "proto2";
+
+package foo.bar;
+
+enum SmallEnum {
+ TO_BE = 1;
+ NOT_TO_BE = 0;
+}
+
+enum SignedEnum {
+ POSITIVE = 1;
+ NEUTRAL = 0;
+ NEGATIVE = -1;
+}
+
+enum BigEnum {
+ BEGIN = 10;
+ END = 100500;
+}
+
+message EveryField {
+ optional int32 field_int32 = 1;
+ optional int64 field_int64 = 2;
+ optional uint32 field_uint32 = 3;
+ optional uint64 field_uint64 = 4;
+ optional sint32 field_sint32 = 5;
+ optional sint64 field_sint64 = 6;
+ optional fixed32 field_fixed32 = 7;
+ optional fixed64 field_fixed64 = 8;
+ optional sfixed32 field_sfixed32 = 9;
+ optional sfixed64 field_sfixed64 = 10;
+ optional float field_float = 11;
+ optional double field_double = 12;
+ optional bool field_bool = 13;
+
+ optional SmallEnum small_enum = 51;
+ optional SignedEnum signed_enum = 52;
+ optional BigEnum big_enum = 53;
+
+ optional string field_string = 500;
+ optional bytes field_bytes = 505;
+
+ enum NestedEnum {
+ PING = 1;
+ PONG = 2;
+ }
+ optional NestedEnum nested_enum = 600;
+
+ repeated int32 repeated_int32 = 999;
+}
+
+message NestedA {
+ message NestedB {
+ message NestedC {
+ optional int32 value_c = 1;
+ }
+ optional NestedC value_b = 1;
+ }
+ repeated NestedB repeated_a = 2;
+}

Powered by Google App Engine
This is Rietveld 408576698