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

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

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (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 2011 Google Inc. All rights reserved. 2 // Copyright 2011 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 11 matching lines...) Expand all
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
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 import "google/protobuf/any.proto";
33 import "google/protobuf/unittest.proto"; 32 import "google/protobuf/unittest.proto";
34 33
35 package protobuf_unittest; 34 package protobuf_unittest;
36 35
37 // Used to check that Headerdocs and appledoc work correctly. If these comments
38 // are not handled correctly, Xcode will fail to build the tests.
39 message TestGeneratedComments {
40 // This is a string that could contain stuff like
41 // mime types as image/* or */plain. Maybe twitter usernames
42 // like @protobuf, @google or @something.
43 optional string string_field = 1;
44 }
45
46 // Using the messages in unittest.proto, setup for recursive cases for testing 36 // Using the messages in unittest.proto, setup for recursive cases for testing
47 // extensions at various depths. 37 // extensions at various depths.
48 extend TestAllExtensions { 38 extend TestAllExtensions {
49 optional TestAllExtensions recursive_extension = 86; 39 optional TestAllExtensions recursive_extension = 86;
50 } 40 }
51 41
52 // Recursive message to for testing autocreators at different depths. 42 // Recursive message to for testing autocreators at different depths.
53 message TestRecursiveMessageWithRepeatedField { 43 message TestRecursiveMessageWithRepeatedField {
54 optional TestRecursiveMessageWithRepeatedField a = 1; 44 optional TestRecursiveMessageWithRepeatedField a = 1;
55 repeated int32 i = 2; 45 repeated int32 i = 2;
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 optional bool bool_field_24 = 24; 440 optional bool bool_field_24 = 24;
451 optional bool bool_field_25 = 25; 441 optional bool bool_field_25 = 25;
452 optional bool bool_field_26 = 26; 442 optional bool bool_field_26 = 26;
453 optional bool bool_field_27 = 27; 443 optional bool bool_field_27 = 27;
454 optional bool bool_field_28 = 28; 444 optional bool bool_field_28 = 28;
455 optional bool bool_field_29 = 29; 445 optional bool bool_field_29 = 29;
456 optional bool bool_field_30 = 30; 446 optional bool bool_field_30 = 30;
457 optional bool bool_field_31 = 31; 447 optional bool bool_field_31 = 31;
458 optional bool bool_field_32 = 32; 448 optional bool bool_field_32 = 32;
459 } 449 }
460
461 // Reference to a WKT to test (via generated code inspection), the handling
462 // of #imports. Within the WKTs, references to each other are just path
463 // based imports, but when reference from another proto file, they should be
464 // conditional to support the framework import style.
465 message WKTRefereceMessage {
466 optional google.protobuf.Any an_any = 1;
467 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698