/external/guava/android/guava-tests/test/com/google/common/io/ |
D | TestInputStream.java | 20 import static com.google.common.io.TestOption.CLOSE_THROWS; 21 import static com.google.common.io.TestOption.OPEN_THROWS; 22 import static com.google.common.io.TestOption.READ_THROWS; 23 import static com.google.common.io.TestOption.SKIP_THROWS; 34 private final ImmutableSet<TestOption> options; 37 public TestInputStream(InputStream in, TestOption... options) throws IOException { in TestInputStream() 41 public TestInputStream(InputStream in, Iterable<TestOption> options) throws IOException { in TestInputStream() 75 return options.contains(TestOption.AVAILABLE_ALWAYS_ZERO) ? 0 : in.available(); in available() 85 private void throwIf(TestOption option) throws IOException { in throwIf()
|
D | TestOutputStream.java | 20 import static com.google.common.io.TestOption.CLOSE_THROWS; 21 import static com.google.common.io.TestOption.OPEN_THROWS; 22 import static com.google.common.io.TestOption.WRITE_THROWS; 33 private final ImmutableSet<TestOption> options; 36 public TestOutputStream(OutputStream out, TestOption... options) throws IOException { in TestOutputStream() 40 public TestOutputStream(OutputStream out, Iterable<TestOption> options) throws IOException { in TestOutputStream() 71 private void throwIf(TestOption option) throws IOException { in throwIf()
|
D | ByteSinkTest.java | 19 import static com.google.common.io.TestOption.CLOSE_THROWS; 20 import static com.google.common.io.TestOption.OPEN_THROWS; 21 import static com.google.common.io.TestOption.READ_THROWS; 22 import static com.google.common.io.TestOption.WRITE_THROWS; 82 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromByteSourceThatThrows()
|
D | CharSinkTest.java | 19 import static com.google.common.io.TestOption.CLOSE_THROWS; 20 import static com.google.common.io.TestOption.OPEN_THROWS; 21 import static com.google.common.io.TestOption.READ_THROWS; 22 import static com.google.common.io.TestOption.WRITE_THROWS; 93 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromCharSourceThatThrows()
|
D | TestByteSink.java | 32 private final ImmutableSet<TestOption> options; 37 public TestByteSink(TestOption... options) { in TestByteSink()
|
D | TestByteSource.java | 35 private final ImmutableSet<TestOption> options; 40 TestByteSource(byte[] bytes, TestOption... options) { in TestByteSource()
|
D | ByteSourceTest.java | 20 import static com.google.common.io.TestOption.AVAILABLE_ALWAYS_ZERO; 21 import static com.google.common.io.TestOption.CLOSE_THROWS; 22 import static com.google.common.io.TestOption.OPEN_THROWS; 23 import static com.google.common.io.TestOption.READ_THROWS; 24 import static com.google.common.io.TestOption.SKIP_THROWS; 25 import static com.google.common.io.TestOption.WRITE_THROWS; 319 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToByteSinkThatThrows()
|
D | CharSourceTest.java | 19 import static com.google.common.io.TestOption.CLOSE_THROWS; 20 import static com.google.common.io.TestOption.OPEN_THROWS; 21 import static com.google.common.io.TestOption.READ_THROWS; 22 import static com.google.common.io.TestOption.WRITE_THROWS; 180 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToCharSinkThatThrows()
|
D | CloseablesTest.java | 67 new TestInputStream(new ByteArrayInputStream(new byte[1]), TestOption.CLOSE_THROWS); in testCloseQuietly_inputStreamWithEatenException() 73 TestReader in = new TestReader(TestOption.CLOSE_THROWS); in testCloseQuietly_readerWithEatenException()
|
D | TestOption.java | 24 public enum TestOption { enum
|
D | TestReader.java | 32 public TestReader(TestOption... options) throws IOException { in TestReader()
|
D | TestCharSource.java | 34 public TestCharSource(String content, TestOption... options) { in TestCharSource()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | TestInputStream.java | 20 import static com.google.common.io.TestOption.CLOSE_THROWS; 21 import static com.google.common.io.TestOption.OPEN_THROWS; 22 import static com.google.common.io.TestOption.READ_THROWS; 23 import static com.google.common.io.TestOption.SKIP_THROWS; 34 private final ImmutableSet<TestOption> options; 37 public TestInputStream(InputStream in, TestOption... options) throws IOException { in TestInputStream() 41 public TestInputStream(InputStream in, Iterable<TestOption> options) throws IOException { in TestInputStream() 75 return options.contains(TestOption.AVAILABLE_ALWAYS_ZERO) ? 0 : in.available(); in available() 85 private void throwIf(TestOption option) throws IOException { in throwIf()
|
D | TestOutputStream.java | 20 import static com.google.common.io.TestOption.CLOSE_THROWS; 21 import static com.google.common.io.TestOption.OPEN_THROWS; 22 import static com.google.common.io.TestOption.WRITE_THROWS; 33 private final ImmutableSet<TestOption> options; 36 public TestOutputStream(OutputStream out, TestOption... options) throws IOException { in TestOutputStream() 40 public TestOutputStream(OutputStream out, Iterable<TestOption> options) throws IOException { in TestOutputStream() 71 private void throwIf(TestOption option) throws IOException { in throwIf()
|
D | ByteSinkTest.java | 19 import static com.google.common.io.TestOption.CLOSE_THROWS; 20 import static com.google.common.io.TestOption.OPEN_THROWS; 21 import static com.google.common.io.TestOption.READ_THROWS; 22 import static com.google.common.io.TestOption.WRITE_THROWS; 82 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromByteSourceThatThrows()
|
D | CharSinkTest.java | 19 import static com.google.common.io.TestOption.CLOSE_THROWS; 20 import static com.google.common.io.TestOption.OPEN_THROWS; 21 import static com.google.common.io.TestOption.READ_THROWS; 22 import static com.google.common.io.TestOption.WRITE_THROWS; 104 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromCharSourceThatThrows()
|
D | TestByteSink.java | 32 private final ImmutableSet<TestOption> options; 37 public TestByteSink(TestOption... options) { in TestByteSink()
|
D | TestByteSource.java | 35 private final ImmutableSet<TestOption> options; 40 TestByteSource(byte[] bytes, TestOption... options) { in TestByteSource()
|
D | ByteSourceTest.java | 20 import static com.google.common.io.TestOption.AVAILABLE_ALWAYS_ZERO; 21 import static com.google.common.io.TestOption.CLOSE_THROWS; 22 import static com.google.common.io.TestOption.OPEN_THROWS; 23 import static com.google.common.io.TestOption.READ_THROWS; 24 import static com.google.common.io.TestOption.SKIP_THROWS; 25 import static com.google.common.io.TestOption.WRITE_THROWS; 319 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToByteSinkThatThrows()
|
D | CloseablesTest.java | 67 new TestInputStream(new ByteArrayInputStream(new byte[1]), TestOption.CLOSE_THROWS); in testCloseQuietly_inputStreamWithEatenException() 73 TestReader in = new TestReader(TestOption.CLOSE_THROWS); in testCloseQuietly_readerWithEatenException()
|
D | CharSourceTest.java | 20 import static com.google.common.io.TestOption.CLOSE_THROWS; 21 import static com.google.common.io.TestOption.OPEN_THROWS; 22 import static com.google.common.io.TestOption.READ_THROWS; 23 import static com.google.common.io.TestOption.WRITE_THROWS; 210 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToCharSinkThatThrows()
|
D | TestOption.java | 24 public enum TestOption { enum
|
D | TestReader.java | 32 public TestReader(TestOption... options) throws IOException { in TestReader()
|
D | TestCharSource.java | 34 public TestCharSource(String content, TestOption... options) { in TestCharSource()
|
/external/llvm-project/llvm/unittests/Support/ |
D | CommandLineTest.cpp | 95 StackOption<int> TestOption("test-option", cl::desc("old description")); in TEST() local 108 ASSERT_EQ(&TestOption, Retrieved) << "Retrieved wrong option."; in TEST() 138 ASSERT_EQ(cl::Hidden, TestOption.getOptionHiddenFlag()) << in TEST() 175 StackOption<int> TestOption("test-option", cl::cat(TestCategory), in TEST() local 177 ASSERT_EQ(TestOption.Categories.end(), in TEST() 178 find_if(TestOption.Categories, in TEST() 183 ASSERT_NE(TestOption.Categories.end(), in TEST() 184 find_if(TestOption.Categories, in TEST() 189 ASSERT_NE(TestOption.Categories.end(), in TEST() 190 find_if(TestOption.Categories, in TEST() [all …]
|