Index: third_party/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/com/google/protobuf/nested_extension_lite.proto |
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/com/google/protobuf/nested_extension_lite.proto |
similarity index 75% |
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
copy to third_party/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/com/google/protobuf/nested_extension_lite.proto |
index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..16ee46e57dc27602a4990668f6d5b64ec4145a6a 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
+++ b/third_party/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/com/google/protobuf/nested_extension_lite.proto |
@@ -1,6 +1,6 @@ |
// Protocol Buffers - Google's data interchange format |
// Copyright 2008 Google Inc. All rights reserved. |
-// https://developers.google.com/protocol-buffers/ |
+// http://code.google.com/p/protobuf/ |
// |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
@@ -28,26 +28,21 @@ |
// (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"; |
+// Author: Darick Tong (darick@google.com) |
+// |
+// A proto file with nested extensions for a MessageLite messages. Note that |
+// this must be defined in a separate file to properly test the initialization |
+// of the outer class. |
-package google.protobuf.testing.anys; |
-option java_package = "com.google.protobuf.testing.anys"; |
-import "google/protobuf/any.proto"; |
+package protobuf_unittest; |
-message AnyIn { |
- string something = 1; |
-} |
+option optimize_for = LITE_RUNTIME; |
-message AnyOut { |
- google.protobuf.Any any = 1; |
-} |
- |
-message AnyM { |
- string foo = 1; |
-} |
+import "com/google/protobuf/non_nested_extension_lite.proto"; |
-service TestService { |
- rpc Call(AnyIn) returns (AnyOut); |
+message MyNestedExtensionLite { |
+ extend MessageLiteToBeExtended { |
+ optional MessageLiteToBeExtended recursiveExtensionLite = 3; |
+ } |
} |