Home
last modified time | relevance | path

Searched refs:READ_THROWS (Results 1 – 12 of 12) sorted by relevance

/external/guava/android/guava-tests/test/com/google/common/io/
DTestInputStream.java22 import static com.google.common.io.TestOption.READ_THROWS;
54 throwIf(READ_THROWS); in read()
61 throwIf(READ_THROWS); in read()
DByteSinkTest.java21 import static com.google.common.io.TestOption.READ_THROWS;
82 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromByteSourceThatThrows()
111 TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10]), READ_THROWS); in testClosesOnErrors_writingFromInputStreamThatThrows()
DCharSinkTest.java21 import static com.google.common.io.TestOption.READ_THROWS;
93 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromCharSourceThatThrows()
122 okSink.writeFrom(new TestReader(READ_THROWS)); in testClosesOnErrors_whenWritingFromReaderThatThrows()
DTestOption.java27 READ_THROWS, enumConstant
DCharSourceTest.java21 import static com.google.common.io.TestOption.READ_THROWS;
196 TestCharSource failSource = new TestCharSource(STRING, READ_THROWS); in testClosesOnErrors_whenReadThrows()
248 static final CharSource BROKEN_READ_SOURCE = new TestCharSource("ABC", READ_THROWS);
DByteSourceTest.java23 import static com.google.common.io.TestOption.READ_THROWS;
335 TestByteSource failSource = new TestByteSource(bytes, READ_THROWS); in testClosesOnErrors_whenReadThrows()
387 new TestByteSource(new byte[10], READ_THROWS);
/external/guava/guava-tests/test/com/google/common/io/
DTestInputStream.java22 import static com.google.common.io.TestOption.READ_THROWS;
54 throwIf(READ_THROWS); in read()
61 throwIf(READ_THROWS); in read()
DByteSinkTest.java21 import static com.google.common.io.TestOption.READ_THROWS;
82 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromByteSourceThatThrows()
111 TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10]), READ_THROWS); in testClosesOnErrors_writingFromInputStreamThatThrows()
DCharSinkTest.java21 import static com.google.common.io.TestOption.READ_THROWS;
104 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromCharSourceThatThrows()
133 okSink.writeFrom(new TestReader(READ_THROWS)); in testClosesOnErrors_whenWritingFromReaderThatThrows()
DTestOption.java27 READ_THROWS, enumConstant
DCharSourceTest.java22 import static com.google.common.io.TestOption.READ_THROWS;
226 TestCharSource failSource = new TestCharSource(STRING, READ_THROWS); in testClosesOnErrors_whenReadThrows()
278 static final CharSource BROKEN_READ_SOURCE = new TestCharSource("ABC", READ_THROWS);
DByteSourceTest.java23 import static com.google.common.io.TestOption.READ_THROWS;
335 TestByteSource failSource = new TestByteSource(bytes, READ_THROWS); in testClosesOnErrors_whenReadThrows()
387 new TestByteSource(new byte[10], READ_THROWS);