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

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

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 3 years, 12 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 // 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 message class 34 // Cycles in the Message graph can cause problems for the mutable classes
35 // initialization order. 35 // since the properties on the mutable class change types. This file just
36 // needs to generate source, and that source must compile, to ensure the
37 // generated source works for this sort of case.
36 38
37 // You can't make a object graph that spans files, so this can only be done 39 // You can't make a object graph that spans files, so this can only be done
38 // within a single proto file. 40 // within a single proto file.
39 41
40 message CycleFoo { 42 message CycleFoo {
41 optional CycleFoo a_foo = 1; 43 optional CycleFoo a_foo = 1;
42 optional CycleBar a_bar = 2; 44 optional CycleBar a_bar = 2;
43 optional CycleBaz a_baz = 3; 45 optional CycleBaz a_baz = 3;
44 } 46 }
45 47
46 message CycleBar { 48 message CycleBar {
47 optional CycleBar a_bar = 1; 49 optional CycleBar a_bar = 1;
48 optional CycleBaz a_baz = 2; 50 optional CycleBaz a_baz = 2;
49 optional CycleFoo a_foo = 3; 51 optional CycleFoo a_foo = 3;
50 } 52 }
51 53
52 message CycleBaz { 54 message CycleBaz {
53 optional CycleBaz a_baz = 1; 55 optional CycleBaz a_baz = 1;
54 optional CycleFoo a_foo = 2; 56 optional CycleFoo a_foo = 2;
55 optional CycleBar a_bar = 3; 57 optional CycleBar a_bar = 3;
56 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698