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

Unified Diff: third_party/protobuf/objectivec/Tests/unittest_extension_chain_a.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 side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/objectivec/Tests/unittest_extension_chain_a.proto
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/protobuf/objectivec/Tests/unittest_extension_chain_a.proto
similarity index 72%
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
copy to third_party/protobuf/objectivec/Tests/unittest_extension_chain_a.proto
index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..6a227eb9770f535c86d83246b09d616053f0fdba 100644
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
+++ b/third_party/protobuf/objectivec/Tests/unittest_extension_chain_a.proto
@@ -1,6 +1,5 @@
// Protocol Buffers - Google's data interchange format
-// Copyright 2008 Google Inc. All rights reserved.
-// https://developers.google.com/protocol-buffers/
+// Copyright 2016 Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -28,26 +27,25 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Proto to test Proto3 Any serialization.
-syntax = "proto3";
+syntax = "proto2";
-package google.protobuf.testing.anys;
-option java_package = "com.google.protobuf.testing.anys";
+package protobuf_unittest;
-import "google/protobuf/any.proto";
+import "google/protobuf/unittest.proto";
-message AnyIn {
- string something = 1;
-}
+import "unittest_extension_chain_b.proto";
+import "unittest_extension_chain_c.proto";
+import "unittest_extension_chain_d.proto";
-message AnyOut {
- google.protobuf.Any any = 1;
-}
+// The Root for this file should end up adding the local extension and merging
+// in the extensions from D's Root (unittest and C will come via D's).
-message AnyM {
- string foo = 1;
+message ChainAMessage {
+ optional ChainBMessage b = 1;
+ optional ChainCMessage c = 2;
+ optional ChainDMessage d = 3;
}
-service TestService {
- rpc Call(AnyIn) returns (AnyOut);
+extend TestAllExtensions {
+ optional int32 chain_a_extension = 10001;
}

Powered by Google App Engine
This is Rietveld 408576698