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

Unified Diff: components/tracing/test/example_messages.proto

Issue 2145423002: ProtoZero plugin implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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
« no previous file with comments | « no previous file | components/tracing/tools/proto_zero_plugin/proto_zero_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/test/example_messages.proto
diff --git a/components/tracing/test/example_messages.proto b/components/tracing/test/example_messages.proto
index ad2054c0e4a9069ffca3a0fe40a0d1c8181cccc9..c3210b822c088045cf641fb4e71465a8b141395e 100644
--- a/components/tracing/test/example_messages.proto
+++ b/components/tracing/test/example_messages.proto
@@ -8,4 +8,59 @@ package foo.bar;
// This file contains comprehensive set of supported message structures and
// data types. Unit tests depends on the plugin-processed version of this file.
-// TODO(kraynov) Populate in the next CL.
+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;
+}
« no previous file with comments | « no previous file | components/tracing/tools/proto_zero_plugin/proto_zero_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698