Home
last modified time | relevance | path

Searched refs:TestInputStream (Results 1 – 3 of 3) sorted by relevance

/aosp12/system/timezone/distro/core/src/test/com/android/timezone/distro/
H A DTimeZoneDistroTest.java76 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testGetDistroVersion_closesStream()
92 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testExtractTo_closesStream()
111 TestInputStream inputStream = in testExtractZipSafely_goodZip()
112 new TestInputStream(new ByteArrayInputStream(baos.toByteArray())); in testExtractZipSafely_goodZip()
144 TestInputStream inputStream = new TestInputStream( in doExtractZipFails()
187 private static class TestInputStream extends FilterInputStream { class in TimeZoneDistroTest
191 public TestInputStream(InputStream in) { in TestInputStream() method in TimeZoneDistroTest.TestInputStream
/aosp12/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
H A DDownloadServiceTest.kt164 private class TestInputStream(private var available: Int = 0) : InputStream() { regex
267 val inputStream1 = TestInputStream()
296 val inputStream2 = TestInputStream()
305 assertSameContents(it, TestInputStream(TEST_FILESIZE))
322 assertSameContents(it, TestInputStream(TEST_FILESIZE))
/aosp12/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
H A DNetworkMonitorTest.java2551 class TestInputStream extends InputStream {
2562 final String readString = NetworkMonitor.readAsString(new TestInputStream(),