Home
last modified time | relevance | path

Searched refs:TEST_STRING1 (Results 1 – 2 of 2) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DLimitedLengthInputStreamTest.java29 private final byte[] TEST_STRING1 = "This is a test".getBytes(); field in LimitedLengthInputStreamTest
37 mTestStream1 = new ByteArrayInputStream(TEST_STRING1); in setUp()
83 byte[] temp = new byte[TEST_STRING1.length]; in checkReadBytesWithOffsetAndLength_WithString1()
87 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
123 byte[] temp = new byte[TEST_STRING1.length + 10]; in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
125 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10)); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
127 byte[] actual = new byte[TEST_STRING1.length]; in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
129 assertTrue(Arrays.equals(TEST_STRING1, actual)); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
133 byte[] temp = new byte[TEST_STRING1.length]; in checkReadBytes_WithString1()
172 assertEquals(TEST_STRING1[offset + i], is.read()); in checkSingleByteRead_WithString1()
[all …]
/aosp12/system/media/audio_utils/tests/
H A Dfdtostring_tests.cpp44 const std::string TEST_STRING1{"hello world\n"}; in TEST() local
51 write(fd, TEST_STRING1.c_str(), TEST_STRING1.size()); in TEST()
57 ASSERT_EQ((PREFIX + TEST_STRING1 + PREFIX + DELIM + PREFIX + TEST_STRING2), result); in TEST()