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

Side by Side Diff: third_party/protobuf/src/google/protobuf/unittest.proto

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 4 years, 7 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 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 oneof foo { 689 oneof foo {
690 int32 foo_int = 1; 690 int32 foo_int = 1;
691 string foo_string = 2; 691 string foo_string = 2;
692 NestedMessage foo_message = 3; 692 NestedMessage foo_message = 3;
693 } 693 }
694 message NestedMessage { 694 message NestedMessage {
695 required double required_double = 1; 695 required double required_double = 1;
696 } 696 }
697 } 697 }
698 698
699
699 // Test messages for packed fields 700 // Test messages for packed fields
700 701
701 message TestPackedTypes { 702 message TestPackedTypes {
702 repeated int32 packed_int32 = 90 [packed = true]; 703 repeated int32 packed_int32 = 90 [packed = true];
703 repeated int64 packed_int64 = 91 [packed = true]; 704 repeated int64 packed_int64 = 91 [packed = true];
704 repeated uint32 packed_uint32 = 92 [packed = true]; 705 repeated uint32 packed_uint32 = 92 [packed = true];
705 repeated uint64 packed_uint64 = 93 [packed = true]; 706 repeated uint64 packed_uint64 = 93 [packed = true];
706 repeated sint32 packed_sint32 = 94 [packed = true]; 707 repeated sint32 packed_sint32 = 94 [packed = true];
707 repeated sint64 packed_sint64 = 95 [packed = true]; 708 repeated sint64 packed_sint64 = 95 [packed = true];
708 repeated fixed32 packed_fixed32 = 96 [packed = true]; 709 repeated fixed32 packed_fixed32 = 96 [packed = true];
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 870
870 service TestService { 871 service TestService {
871 rpc Foo(FooRequest) returns (FooResponse); 872 rpc Foo(FooRequest) returns (FooResponse);
872 rpc Bar(BarRequest) returns (BarResponse); 873 rpc Bar(BarRequest) returns (BarResponse);
873 } 874 }
874 875
875 876
876 message BarRequest {} 877 message BarRequest {}
877 message BarResponse {} 878 message BarResponse {}
878 879
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698