31 package com.google.protobuf;
34 import java.io.IOException;
35 import junit.framework.TestCase;
77 ArrayDecoders.decodeStringList(
82 new ProtobufArrayList<Object>(),
91 ArrayDecoders.decodeStringList(
96 new ProtobufArrayList<Object>(),
105 ArrayDecoders.decodeStringListRequireUtf8(
110 new ProtobufArrayList<Object>(),
119 ArrayDecoders.decodeStringListRequireUtf8(
124 new ProtobufArrayList<Object>(),
133 ArrayDecoders.decodeBytesList(
138 new ProtobufArrayList<Object>(),
147 ArrayDecoders.decodeBytesList(
152 new ProtobufArrayList<Object>(),
161 ArrayDecoders.decodeUnknownField(
176 (
byte) 0x80, (
byte) 0xFF, (
byte) 0xFF, (
byte) 0xEF, 0x73, 0x74, 0x69, 0x6E, 0x67
179 ArrayDecoders.decodeUnknownField(
186 ArrayDecoders.decodeBytes(badBytes, 0,
registers);
191 byte[] badBytesList =
207 ArrayDecoders.decodeBytesList(
208 TAG, badBytesList, 0, badBytes.length,
new ProtobufArrayList<>(),
registers);
231 return byteStringOutput.toByteString();
232 }
catch (IOException e) {
233 throw new RuntimeException(e);