Home
last modified time | relevance | path

Searched refs:byteSink (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DFunnelsTest.java20 Sink byteSink = EasyMock.createMock(Sink.class); in testForBytes() local
22 EasyMock.expect(byteSink.putBytes(EasyMock.aryEq(new byte[] { 4, 3, 2, 1}))) in testForBytes()
23 .andReturn(byteSink).once(); in testForBytes()
24 EasyMock.replay(byteSink); in testForBytes()
26 Funnels.byteArrayFunnel().funnel(new byte[]{4, 3, 2, 1}, byteSink); in testForBytes()
28 EasyMock.verify(byteSink); in testForBytes()
37 Sink byteSink = EasyMock.createMock(Sink.class); in testForStrings() local
39 EasyMock.expect(byteSink.putString("test")).andReturn(byteSink).once(); in testForStrings()
40 EasyMock.replay(byteSink); in testForStrings()
42 Funnels.stringFunnel().funnel("test", byteSink); in testForStrings()
[all …]
DHashTestUtils.java79 @Override public void funnel(Object object, Sink byteSink) {
80 byteSink.putInt(object.hashCode());