Home
last modified time | relevance | path

Searched refs:ByteSourceFactory (Results 1 – 8 of 8) sorted by relevance

/external/guava/android/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java21 import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
55 public static ByteSourceFactory byteArraySourceFactory() { in byteArraySourceFactory()
59 public static ByteSourceFactory emptyByteSourceFactory() { in emptyByteSourceFactory()
67 public static ByteSourceFactory fileByteSourceFactory() { in fileByteSourceFactory()
93 public static ByteSourceFactory urlByteSourceFactory() { in urlByteSourceFactory()
101 public static ByteSourceFactory asByteSourceFactory(final CharSourceFactory factory) { in asByteSourceFactory()
103 return new ByteSourceFactory() { in asByteSourceFactory()
121 public static CharSourceFactory asCharSourceFactory(final ByteSourceFactory factory) {
171 public static ByteSourceFactory asSlicedByteSourceFactory(
172 final ByteSourceFactory factory, final long off, final long len) {
[all …]
DByteSourceTester.java19 import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
47 public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> {
51 static TestSuite tests(String name, ByteSourceFactory factory, boolean testAsCharSource) { in tests()
66 ByteSourceFactory factory, String string, String name, String desc) { in suiteForString()
76 ByteSourceFactory factory, byte[] bytes, String name, String desc, boolean slice) { in suiteForBytes()
90 ByteSourceFactory sliced = SourceSinkFactories.asSlicedByteSourceFactory(factory, off, len); in suiteForBytes()
95 ByteSourceFactory slicedLongMaxValue = in suiteForBytes()
102 ByteSourceFactory slicedOffsetPastEnd = in suiteForBytes()
115 ByteSourceFactory factory, byte[] bytes, String suiteName, String caseDesc, Method method) { in ByteSourceTester()
DSourceSinkFactory.java67 public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {} interface
DCharSourceTester.java23 import com.google.common.io.SourceSinkFactory.ByteSourceFactory;
63 ByteSourceFactory byteSourceFactory = SourceSinkFactories.asByteSourceFactory(factory); in suiteForBytes()
/external/guava/guava-tests/test/com/google/common/io/
DByteSourceTester.java19 import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
47 public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> {
51 static TestSuite tests(String name, ByteSourceFactory factory, boolean testAsCharSource) { in tests()
66 ByteSourceFactory factory, String string, String name, String desc) { in suiteForString()
76 ByteSourceFactory factory, byte[] bytes, String name, String desc, boolean slice) { in suiteForBytes()
90 ByteSourceFactory sliced = SourceSinkFactories.asSlicedByteSourceFactory(factory, off, len); in suiteForBytes()
95 ByteSourceFactory slicedLongMaxValue = in suiteForBytes()
102 ByteSourceFactory slicedOffsetPastEnd = in suiteForBytes()
115 ByteSourceFactory factory, byte[] bytes, String suiteName, String caseDesc, Method method) { in ByteSourceTester()
DSourceSinkFactories.java21 import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
58 public static ByteSourceFactory byteArraySourceFactory() { in byteArraySourceFactory()
62 public static ByteSourceFactory emptyByteSourceFactory() { in emptyByteSourceFactory()
70 public static ByteSourceFactory fileByteSourceFactory() { in fileByteSourceFactory()
96 public static ByteSourceFactory urlByteSourceFactory() { in urlByteSourceFactory()
105 public static ByteSourceFactory pathByteSourceFactory() { in pathByteSourceFactory()
136 public static ByteSourceFactory asByteSourceFactory(final CharSourceFactory factory) { in asByteSourceFactory()
138 return new ByteSourceFactory() { in asByteSourceFactory()
156 public static CharSourceFactory asCharSourceFactory(final ByteSourceFactory factory) {
206 public static ByteSourceFactory asSlicedByteSourceFactory(
[all …]
DSourceSinkFactory.java67 public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {} interface
DCharSourceTester.java25 import com.google.common.io.SourceSinkFactory.ByteSourceFactory;
66 ByteSourceFactory byteSourceFactory = SourceSinkFactories.asByteSourceFactory(factory); in suiteForBytes()