Searched refs:halfSegment (Results 1 – 1 of 1) sorted by relevance
/external/okhttp/okio/src/test/java/okio/ |
D | OkBufferTest.java | 329 int halfSegment = Segment.SIZE / 2; in indexOfWithOffset() local 330 buffer.writeUtf8(repeat('a', halfSegment)); in indexOfWithOffset() 331 buffer.writeUtf8(repeat('b', halfSegment)); in indexOfWithOffset() 332 buffer.writeUtf8(repeat('c', halfSegment)); in indexOfWithOffset() 333 buffer.writeUtf8(repeat('d', halfSegment)); in indexOfWithOffset() 335 assertEquals(halfSegment - 1, buffer.indexOf((byte) 'a', halfSegment - 1)); in indexOfWithOffset() 336 assertEquals(halfSegment, buffer.indexOf((byte) 'b', halfSegment - 1)); in indexOfWithOffset() 337 assertEquals(halfSegment * 2, buffer.indexOf((byte) 'c', halfSegment - 1)); in indexOfWithOffset() 338 assertEquals(halfSegment * 3, buffer.indexOf((byte) 'd', halfSegment - 1)); in indexOfWithOffset() 339 assertEquals(halfSegment * 3, buffer.indexOf((byte) 'd', halfSegment * 2)); in indexOfWithOffset() [all …]
|