/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | IsValidUtf8Test.java | 38 import static com.google.protobuf.IsValidUtf8TestUtil.testBytes; 59 testBytes(LITERAL_FACTORY, 1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_1Byte() 60 testBytes(HEAP_NIO_FACTORY, 1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_1Byte() 61 testBytes(DIRECT_NIO_FACTORY, 1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_1Byte() 66 testBytes(LITERAL_FACTORY, 2, IsValidUtf8TestUtil.EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_2Bytes() 67 testBytes(HEAP_NIO_FACTORY, 2, IsValidUtf8TestUtil.EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_2Bytes() 68 testBytes(DIRECT_NIO_FACTORY, 2, IsValidUtf8TestUtil.EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_2Bytes() 75 testBytes(LITERAL_FACTORY, 3, EXPECTED_THREE_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_3Bytes() 76 testBytes(HEAP_NIO_FACTORY, 3, EXPECTED_THREE_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_3Bytes() 77 testBytes(DIRECT_NIO_FACTORY, 3, EXPECTED_THREE_BYTE_ROUNDTRIPPABLE_COUNT); in testIsValidUtf8_3Bytes()
|
D | ByteStringTest.java | 172 byte[] testBytes = testString.getBytes(UTF_16); in testCopyFrom_StringEncoding() 175 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding() 181 byte[] testBytes = testString.getBytes(Internal.UTF_8); in testCopyFrom_Utf8() 184 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8() 188 byte[] testBytes = getTestBytes(77777, 113344L); in testCopyFrom_Iterable() 189 final List<ByteString> pieces = makeConcretePieces(testBytes); in testCopyFrom_Iterable() 194 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable() 209 byte[] testBytes = getTestBytes(100); in testCopyFrom_LengthTooBig() 211 ByteString.copyFrom(testBytes, 0, 200); in testCopyFrom_LengthTooBig() 217 ByteString.copyFrom(testBytes, 99, 2); in testCopyFrom_LengthTooBig() [all …]
|
D | RopeByteStringTest.java | 90 byte[] testBytes = ByteStringTest.getTestBytes(numberOfPieces * pieceSize, 113377L); in testBalance() 95 concatenated = concatenated.concat(ByteString.copyFrom(testBytes, i * pieceSize, pieceSize)); in testBalance() 104 Arrays.equals(testBytes, concatenated.toByteArray())); in testBalance() 105 ByteString testString = ByteString.copyFrom(testBytes); in testBalance()
|
D | IsValidUtf8TestUtil.java | 237 static void testBytes(ByteStringFactory factory, int numBytes, long expectedCount) { 238 testBytes(factory, numBytes, expectedCount, 0, -1); 252 static void testBytes(
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | RopeByteStringTest.java | 64 byte[] testBytes = ByteStringTest.getTestBytes(numberOfPieces * pieceSize, 113377L); in testBalance() 69 concatenated = concatenated.concat(ByteString.copyFrom(testBytes, i * pieceSize, pieceSize)); in testBalance() 75 Arrays.equals(testBytes, concatenated.toByteArray())); in testBalance() 76 ByteString testString = ByteString.copyFrom(testBytes); in testBalance()
|
D | ByteStringTest.java | 134 byte[] testBytes = testString.getBytes(UTF_16); in testCopyFrom_StringEncoding() 136 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding() 142 byte[] testBytes = testString.getBytes("UTF-8"); in testCopyFrom_Utf8() 144 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8() 148 byte[] testBytes = getTestBytes(77777, 113344L); in testCopyFrom_Iterable() 149 final List<ByteString> pieces = makeConcretePieces(testBytes); in testCopyFrom_Iterable() 153 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable() 365 byte[] testBytes = testString.getBytes("UTF-8"); in testToStringUtf8() 366 ByteString byteString = ByteString.copyFrom(testBytes); in testToStringUtf8()
|
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/ |
D | OpenTypeDataTests.java | 27 private static final byte[] testBytes = field in OpenTypeDataTests 35 MemoryByteArray array = new MemoryByteArray(Arrays.copyOf(testBytes, testBytes.length)); in testRead()
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/ |
D | OpenTypeDataTests.java | 27 private static final byte[] testBytes = field in OpenTypeDataTests 35 MemoryByteArray array = new MemoryByteArray(Arrays.copyOf(testBytes, testBytes.length)); in testRead()
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | nucnvtst.c | 5349 static const uint8_t testBytes[] = { 0x95, 0xcf, 0x8a, 0xb7, 0x0d, 0x0a, 0x00 }; in TestJitterbug255() local 5350 const char *testBuffer = (const char *)testBytes; in TestJitterbug255() 5351 const char *testEnd = (const char *)testBytes + sizeof(testBytes); in TestJitterbug255()
|
/third_party/python/Lib/test/ |
D | test_marshal.py | 423 def testBytes(self): member in InstancingTestCase
|
/third_party/protobuf/objectivec/Tests/ |
D | GPBCodedInputStreamTests.m | 173 - (void)testBytes { method in self
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | json_format_test.py | 905 def testBytes(self): member in JsonFormatTest
|