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

Side by Side Diff: third_party/protobuf/objectivec/Tests/unittest_objc.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 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";
32 import "google/protobuf/unittest.proto"; 33 import "google/protobuf/unittest.proto";
33 34
34 package protobuf_unittest; 35 package protobuf_unittest;
35 36
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
36 // Using the messages in unittest.proto, setup for recursive cases for testing 46 // Using the messages in unittest.proto, setup for recursive cases for testing
37 // extensions at various depths. 47 // extensions at various depths.
38 extend TestAllExtensions { 48 extend TestAllExtensions {
39 optional TestAllExtensions recursive_extension = 86; 49 optional TestAllExtensions recursive_extension = 86;
40 } 50 }
41 51
42 // Recursive message to for testing autocreators at different depths. 52 // Recursive message to for testing autocreators at different depths.
43 message TestRecursiveMessageWithRepeatedField { 53 message TestRecursiveMessageWithRepeatedField {
44 optional TestRecursiveMessageWithRepeatedField a = 1; 54 optional TestRecursiveMessageWithRepeatedField a = 1;
45 repeated int32 i = 2; 55 repeated int32 i = 2;
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 optional bool bool_field_24 = 24; 450 optional bool bool_field_24 = 24;
441 optional bool bool_field_25 = 25; 451 optional bool bool_field_25 = 25;
442 optional bool bool_field_26 = 26; 452 optional bool bool_field_26 = 26;
443 optional bool bool_field_27 = 27; 453 optional bool bool_field_27 = 27;
444 optional bool bool_field_28 = 28; 454 optional bool bool_field_28 = 28;
445 optional bool bool_field_29 = 29; 455 optional bool bool_field_29 = 29;
446 optional bool bool_field_30 = 30; 456 optional bool bool_field_30 = 30;
447 optional bool bool_field_31 = 31; 457 optional bool bool_field_31 = 31;
448 optional bool bool_field_32 = 32; 458 optional bool bool_field_32 = 32;
449 } 459 }
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