ADD: added new version of protobuf

This commit is contained in:
Henry Winkel
2022-12-20 10:09:28 +01:00
parent 4a79559129
commit 1e2b3dda7b
1513 changed files with 123720 additions and 83381 deletions

View File

@@ -72,7 +72,6 @@ junit_tests(
":lite",
"//java/core:generic_test_protos_java_proto_lite",
"//java/core:java_test_protos_java_proto_lite",
"//java/core:lite_test_protos_java_proto_lite",
"//java/core:test_util_lite",
"@maven//:com_google_truth_truth",
"@maven//:junit_junit",

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-parent</artifactId>
<version>3.21.8</version>
<version>3.21.12</version>
</parent>
<artifactId>protobuf-javalite</artifactId>

View File

@@ -51,7 +51,6 @@ import com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup;
import com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder;
import com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite;
import com.google.protobuf.UnittestLite.TestNestedExtensionLite;
import com.google.protobuf.testing.Proto3TestingLite.Proto3MessageLite;
import map_lite_test.MapTestProto.TestMap;
import map_lite_test.MapTestProto.TestMap.MessageValue;
import protobuf_unittest.NestedExtensionLite;
@@ -225,22 +224,6 @@ public class LiteTest {
assertThat(((Byte) memo.get(message)).intValue()).isEqualTo(1);
}
@Test
public void testProto3EnumListValueCopyOnWrite() {
Proto3MessageLite.Builder builder = Proto3MessageLite.newBuilder();
Proto3MessageLite message = builder.build();
builder.addFieldEnumList30Value(Proto3MessageLite.TestEnum.ONE_VALUE);
assertThat(message.getFieldEnumList30List()).isEmpty();
assertThat(builder.getFieldEnumList30List()).containsExactly(Proto3MessageLite.TestEnum.ONE);
assertThat(message.getFieldEnumList30List()).isEmpty();
Proto3MessageLite messageAfterBuild = builder.build();
builder.clearFieldEnumList30();
assertThat(builder.getFieldEnumList30List()).isEmpty();
assertThat(messageAfterBuild.getFieldEnumList30List())
.containsExactly(Proto3MessageLite.TestEnum.ONE);
}
@Test
public void testSanityCopyOnWrite() throws InvalidProtocolBufferException {
// Since builders are implemented as a thin wrapper around a message