Home
last modified time | relevance | path

Searched refs:assertImmutable (Results 1 – 10 of 10) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DProtobufArrayListTest.java60 assertImmutable(ProtobufArrayList.<Integer>emptyList()); in testEmptyListIsImmutable()
103 assertImmutable(list); in testMakeImmutable()
245 private void assertImmutable(List<Integer> list) { in assertImmutable() method in ProtobufArrayListTest
DLongArrayListTest.java63 assertImmutable(LongArrayList.emptyList()); in testEmptyListIsImmutable()
72 assertImmutable(list); in testMakeImmutable()
327 private void assertImmutable(LongList list) { in assertImmutable() method in LongArrayListTest
DDoubleArrayListTest.java63 assertImmutable(DoubleArrayList.emptyList()); in testEmptyListIsImmutable()
72 assertImmutable(list); in testMakeImmutable()
329 private void assertImmutable(DoubleList list) { in assertImmutable() method in DoubleArrayListTest
DFloatArrayListTest.java63 assertImmutable(FloatArrayList.emptyList()); in testEmptyListIsImmutable()
72 assertImmutable(list); in testMakeImmutable()
329 private void assertImmutable(FloatList list) { in assertImmutable() method in FloatArrayListTest
DBooleanArrayListTest.java64 assertImmutable(BooleanArrayList.emptyList()); in testEmptyListIsImmutable()
73 assertImmutable(list); in testMakeImmutable()
329 private void assertImmutable(BooleanList list) { in assertImmutable() method in BooleanArrayListTest
DIntArrayListTest.java63 assertImmutable(IntArrayList.emptyList()); in testEmptyListIsImmutable()
72 assertImmutable(list); in testMakeImmutable()
327 private void assertImmutable(IntList list) { in assertImmutable() method in IntArrayListTest
DMapForProto2LiteTest.java229 assertImmutable(testMapOrBuilder.getInt32ToInt32Field(), 1, 2); in assertMapsAreImmutable()
230 assertImmutable(testMapOrBuilder.getInt32ToStringField(), 1, "2"); in assertMapsAreImmutable()
231 assertImmutable(testMapOrBuilder.getInt32ToBytesField(), 1, TestUtil.toBytes("2")); in assertMapsAreImmutable()
232 assertImmutable(testMapOrBuilder.getInt32ToEnumField(), 1, TestMap.EnumValue.FOO); in assertMapsAreImmutable()
233 assertImmutable( in assertMapsAreImmutable()
235 assertImmutable(testMapOrBuilder.getStringToInt32Field(), "1", 2); in assertMapsAreImmutable()
238 private <K, V> void assertImmutable(Map<K, V> map, K key, V value) { in assertImmutable() method in MapForProto2LiteTest
DMapLiteTest.java235 assertImmutable(testMapOrBuilder.getInt32ToInt32Field(), 1, 2); in assertMapsAreImmutable()
236 assertImmutable(testMapOrBuilder.getInt32ToStringField(), 1, "2"); in assertMapsAreImmutable()
237 assertImmutable(testMapOrBuilder.getInt32ToBytesField(), 1, TestUtil.toBytes("2")); in assertMapsAreImmutable()
238 assertImmutable(testMapOrBuilder.getInt32ToEnumField(), 1, TestMap.EnumValue.FOO); in assertMapsAreImmutable()
239 assertImmutable( in assertMapsAreImmutable()
241 assertImmutable(testMapOrBuilder.getStringToInt32Field(), "1", 2); in assertMapsAreImmutable()
244 private <K, V> void assertImmutable(Map<K, V> map, K key, V value) { in assertImmutable() method in MapLiteTest
DMapForProto2Test.java296 assertImmutable(testMapOrBuilder.getInt32ToInt32Field(), 1, 2); in assertMapsAreImmutable()
297 assertImmutable(testMapOrBuilder.getInt32ToStringField(), 1, "2"); in assertMapsAreImmutable()
298 assertImmutable(testMapOrBuilder.getInt32ToBytesField(), 1, TestUtil.toBytes("2")); in assertMapsAreImmutable()
299 assertImmutable(testMapOrBuilder.getInt32ToEnumField(), 1, TestMap.EnumValue.FOO); in assertMapsAreImmutable()
300 assertImmutable( in assertMapsAreImmutable()
302 assertImmutable(testMapOrBuilder.getStringToInt32Field(), "1", 2); in assertMapsAreImmutable()
305 private <K, V> void assertImmutable(Map<K, V> map, K key, V value) { in assertImmutable() method in MapForProto2Test
DMapTest.java299 assertImmutable(testMapOrBuilder.getInt32ToInt32Field(), 1, 2); in assertMapsAreImmutable()
300 assertImmutable(testMapOrBuilder.getInt32ToStringField(), 1, "2"); in assertMapsAreImmutable()
301 assertImmutable(testMapOrBuilder.getInt32ToBytesField(), 1, TestUtil.toBytes("2")); in assertMapsAreImmutable()
302 assertImmutable(testMapOrBuilder.getInt32ToEnumField(), 1, TestMap.EnumValue.FOO); in assertMapsAreImmutable()
303 assertImmutable( in assertMapsAreImmutable()
305 assertImmutable(testMapOrBuilder.getStringToInt32Field(), "1", 2); in assertMapsAreImmutable()
308 private <K, V> void assertImmutable(Map<K, V> map, K key, V value) { in assertImmutable() method in MapTest