Home
last modified time | relevance | path

Searched refs:TestOption (Results 1 – 16 of 16) sorted by relevance

/external/guava/guava-tests/test/com/google/common/io/
DTestInputStream.java20 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;
37 private final ImmutableSet<TestOption> options;
40 public TestInputStream(InputStream in, TestOption... options) throws IOException { in TestInputStream()
44 public TestInputStream(InputStream in, Iterable<TestOption> options) throws IOException { in TestInputStream()
78 return options.contains(TestOption.AVAILABLE_ALWAYS_ZERO) ? 0 : in.available(); in available()
88 private void throwIf(TestOption option) throws IOException { in throwIf()
DTestOutputStream.java20 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;
36 private final ImmutableSet<TestOption> options;
39 public TestOutputStream(OutputStream out, TestOption... options) throws IOException { in TestOutputStream()
43 public TestOutputStream(OutputStream out, Iterable<TestOption> options) throws IOException { in TestOutputStream()
74 private void throwIf(TestOption option) throws IOException { in throwIf()
DByteSinkTest.java19 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()
DCharSinkTest.java19 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;
94 for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingFromCharSourceThatThrows()
DByteSourceTest.java20 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;
246 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToByteSinkThatThrows()
DTestByteSink.java33 private final ImmutableSet<TestOption> options;
38 public TestByteSink(TestOption... options) { in TestByteSink()
DTestByteSource.java36 private final ImmutableSet<TestOption> options;
41 TestByteSource(byte[] bytes, TestOption... options) { in TestByteSource()
DCharSourceTest.java19 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;
171 for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { in testClosesOnErrors_copyingToCharSinkThatThrows()
DCloseablesTest.java72 new ByteArrayInputStream(new byte[1]), TestOption.CLOSE_THROWS); in testCloseQuietly_inputStreamWithEatenException()
78 TestReader in = new TestReader(TestOption.CLOSE_THROWS); in testCloseQuietly_readerWithEatenException()
DTestOption.java24 public enum TestOption { enum
DTestCharSource.java34 public TestCharSource(String content, TestOption... options) { in TestCharSource()
DTestReader.java34 public TestReader(TestOption... options) throws IOException { in TestReader()
DTestWriter.java33 public TestWriter(TestOption... options) throws IOException { in TestWriter()
DTestCharSink.java35 public TestCharSink(TestOption... options) { in TestCharSink()
/external/vixl/tools/
Dtest.py66 class TestOption(object): class
96 class EnvironmentOption(TestOption):
97 option_type = TestOption.type_environment
113 class BuildOption(TestOption):
114 option_type = TestOption.type_build
128 class RuntimeOption(TestOption):
129 option_type = TestOption.type_run
/external/llvm/unittests/Support/
DCommandLineTest.cpp75 StackOption<int> TestOption("test-option", cl::desc("old description")); in TEST() local
87 ASSERT_EQ(&TestOption, Retrieved) << "Retrieved wrong option."; in TEST()
109 ASSERT_EQ(cl::Hidden, TestOption.getOptionHiddenFlag()) << in TEST()