Index: third_party/protobuf/java/core/src/test/java/com/google/protobuf/ParserTest.java |
diff --git a/third_party/protobuf/java/src/test/java/com/google/protobuf/ParserTest.java b/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ParserTest.java |
similarity index 97% |
rename from third_party/protobuf/java/src/test/java/com/google/protobuf/ParserTest.java |
rename to third_party/protobuf/java/core/src/test/java/com/google/protobuf/ParserTest.java |
index 5a92bacfbf53533b2aa3317f2d2bee06491b6065..30842d2c0833fc13b91bd65a87f45274ad115091 100644 |
--- a/third_party/protobuf/java/src/test/java/com/google/protobuf/ParserTest.java |
+++ b/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ParserTest.java |
@@ -33,15 +33,15 @@ package com.google.protobuf; |
import com.google.protobuf.UnittestLite.TestAllTypesLite; |
import com.google.protobuf.UnittestLite.TestPackedExtensionsLite; |
import com.google.protobuf.UnittestLite.TestParsingMergeLite; |
+import protobuf_unittest.UnittestOptimizeFor; |
import protobuf_unittest.UnittestOptimizeFor.TestOptimizedForSize; |
import protobuf_unittest.UnittestOptimizeFor.TestRequiredOptimizedForSize; |
-import protobuf_unittest.UnittestOptimizeFor; |
+import protobuf_unittest.UnittestProto; |
import protobuf_unittest.UnittestProto.ForeignMessage; |
import protobuf_unittest.UnittestProto.TestAllTypes; |
import protobuf_unittest.UnittestProto.TestEmptyMessage; |
import protobuf_unittest.UnittestProto.TestParsingMerge; |
import protobuf_unittest.UnittestProto.TestRequired; |
-import protobuf_unittest.UnittestProto; |
import junit.framework.TestCase; |
@@ -179,16 +179,16 @@ public class ParserTest extends TestCase { |
public void testParseExtensions() throws Exception { |
assertRoundTripEquals(TestUtil.getAllExtensionsSet(), |
TestUtil.getExtensionRegistry()); |
- assertRoundTripEquals(TestUtil.getAllLiteExtensionsSet(), |
- TestUtil.getExtensionRegistryLite()); |
+ assertRoundTripEquals( |
+ TestUtilLite.getAllLiteExtensionsSet(), TestUtilLite.getExtensionRegistryLite()); |
} |
public void testParsePacked() throws Exception { |
assertRoundTripEquals(TestUtil.getPackedSet()); |
assertRoundTripEquals(TestUtil.getPackedExtensionsSet(), |
TestUtil.getExtensionRegistry()); |
- assertRoundTripEquals(TestUtil.getLitePackedExtensionsSet(), |
- TestUtil.getExtensionRegistryLite()); |
+ assertRoundTripEquals( |
+ TestUtilLite.getLitePackedExtensionsSet(), TestUtilLite.getExtensionRegistryLite()); |
} |
public void testParseDelimitedTo() throws Exception { |
@@ -198,8 +198,7 @@ public class ParserTest extends TestCase { |
normalMessage.writeDelimitedTo(output); |
// Write MessageLite with packed extension fields. |
- TestPackedExtensionsLite packedMessage = |
- TestUtil.getLitePackedExtensionsSet(); |
+ TestPackedExtensionsLite packedMessage = TestUtilLite.getLitePackedExtensionsSet(); |
packedMessage.writeDelimitedTo(output); |
InputStream input = new ByteArrayInputStream(output.toByteArray()); |
@@ -208,8 +207,9 @@ public class ParserTest extends TestCase { |
normalMessage.getParserForType().parseDelimitedFrom(input)); |
assertMessageEquals( |
packedMessage, |
- packedMessage.getParserForType().parseDelimitedFrom( |
- input, TestUtil.getExtensionRegistryLite())); |
+ packedMessage |
+ .getParserForType() |
+ .parseDelimitedFrom(input, TestUtilLite.getExtensionRegistryLite())); |
} |
public void testParseUnknownFields() throws Exception { |