Searched refs:byteSource (Results 1 – 3 of 3) sorted by relevance
32 private final TestByteSource byteSource; field in TestCharSource35 this.byteSource = new TestByteSource(content.getBytes(UTF_8), options); in TestCharSource()40 return byteSource.wasStreamOpened(); in wasStreamOpened()45 return byteSource.wasStreamClosed(); in wasStreamClosed()50 return new InputStreamReader(byteSource.openStream(), UTF_8); in openStream()
167 ByteSource byteSource = new TestByteSource("hamburger\n".getBytes(Charsets.US_ASCII)); in testHash() local170 assertEquals("cfa0c5002275c90508338a5cdb2a9781", byteSource.hash(Hashing.md5()).toString()); in testHash()
898 jspb.utils.debugBytesToTextFormat = function(byteSource) { argument900 if (byteSource) {901 var bytes = jspb.utils.byteSourceToUint8Array(byteSource);