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

Side by Side Diff: third_party/protobuf/objectivec/Tests/unittest_cycle.proto

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years 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 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2015 Google Inc. All rights reserved. 2 // Copyright 2015 Google Inc. All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 syntax = "proto2"; 30 syntax = "proto2";
31 31
32 package protobuf_unittest; 32 package protobuf_unittest;
33 33
34 // Cycles in the Message graph can cause problems for the mutable classes 34 // Cycles in the Message graph can cause problems for message class
35 // since the properties on the mutable class change types. This file just 35 // initialization order.
36 // needs to generate source, and that source must compile, to ensure the
37 // generated source works for this sort of case.
38 36
39 // You can't make a object graph that spans files, so this can only be done 37 // You can't make a object graph that spans files, so this can only be done
40 // within a single proto file. 38 // within a single proto file.
41 39
42 message CycleFoo { 40 message CycleFoo {
43 optional CycleFoo a_foo = 1; 41 optional CycleFoo a_foo = 1;
44 optional CycleBar a_bar = 2; 42 optional CycleBar a_bar = 2;
45 optional CycleBaz a_baz = 3; 43 optional CycleBaz a_baz = 3;
46 } 44 }
47 45
48 message CycleBar { 46 message CycleBar {
49 optional CycleBar a_bar = 1; 47 optional CycleBar a_bar = 1;
50 optional CycleBaz a_baz = 2; 48 optional CycleBaz a_baz = 2;
51 optional CycleFoo a_foo = 3; 49 optional CycleFoo a_foo = 3;
52 } 50 }
53 51
54 message CycleBaz { 52 message CycleBaz {
55 optional CycleBaz a_baz = 1; 53 optional CycleBaz a_baz = 1;
56 optional CycleFoo a_foo = 2; 54 optional CycleFoo a_foo = 2;
57 optional CycleBar a_bar = 3; 55 optional CycleBar a_bar = 3;
58 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698