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

Side by Side Diff: components/tracing/test/example_proto/various_messages.proto

Issue 2201393002: Tracing V2: Import support 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 package foo.bar; 6 package foo.bar;
7 7
8 import "library.proto";
9
8 // This file contains comprehensive set of supported message structures and 10 // This file contains comprehensive set of supported message structures and
9 // data types. Unit tests depends on the plugin-processed version of this file. 11 // data types. Unit tests depends on the plugin-processed version of this file.
10 12
13 // Tests importing message definition frm another proto file.
Primiano Tucci (use gerrit) 2016/08/03 15:36:28 s/frm/from/
14 message TransgalacticParcel {
15 optional TransgalacticMessage message = 1;
16 optional string tracking_code = 2;
17 }
18
11 enum SmallEnum { 19 enum SmallEnum {
12 TO_BE = 1; 20 TO_BE = 1;
13 NOT_TO_BE = 0; 21 NOT_TO_BE = 0;
14 } 22 }
15 23
16 enum SignedEnum { 24 enum SignedEnum {
17 POSITIVE = 1; 25 POSITIVE = 1;
18 NEUTRAL = 0; 26 NEUTRAL = 0;
19 NEGATIVE = -1; 27 NEGATIVE = -1;
20 } 28 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 65
58 message NestedA { 66 message NestedA {
59 message NestedB { 67 message NestedB {
60 message NestedC { 68 message NestedC {
61 optional int32 value_c = 1; 69 optional int32 value_c = 1;
62 } 70 }
63 optional NestedC value_b = 1; 71 optional NestedC value_b = 1;
64 } 72 }
65 repeated NestedB repeated_a = 2; 73 repeated NestedB repeated_a = 2;
66 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698