Lines Matching refs:bufferSize

53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) {  in test_incremental_buffering()  argument
60 bufferSize); in test_incremental_buffering()
64 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 2); in test_incremental_buffering()
69 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 4); in test_incremental_buffering()
72 test_read(reporter, bufferedStream.get(), gAbcs + bufferSize / 4, bufferSize / 2); in test_incremental_buffering()
77 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize << 1); in test_incremental_buffering()
85 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() argument
88 bufferSize); in test_perfectly_sized_buffer()
92 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer()
98 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer()
105 static void test_skipping(skiatest::Reporter* reporter, size_t bufferSize) { in test_skipping() argument
108 bufferSize); in test_skipping()
112 bufferedStream->skip(bufferSize / 2); in test_skipping()
116 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 4); in test_skipping()
119 bufferedStream->skip(bufferSize / 2); in test_skipping()
122 test_read(reporter, bufferedStream.get(), gAbcs + memStream->getPosition(), bufferSize / 4); in test_skipping()
125 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_skipping()
156 static void test_read_beyond_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_read_beyond_buffer() argument
159 new AndroidLikeMemoryStream((void*)gAbcs, bufferSize, false); in test_read_beyond_buffer()
163 bufferSize); in test_read_beyond_buffer()
167 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize + 1); in test_read_beyond_buffer()
171 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_read_beyond_buffer()
205 static void test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) { in test_length_combos() argument
211 bufferSize); in test_length_combos()
218 static void test_initial_offset(skiatest::Reporter* reporter, size_t bufferSize) { in test_initial_offset() argument
226 bufferSize); in test_initial_offset()
249 static void test_buffers(skiatest::Reporter* reporter, size_t bufferSize) { in test_buffers() argument
250 test_incremental_buffering(reporter, bufferSize); in test_buffers()
251 test_perfectly_sized_buffer(reporter, bufferSize); in test_buffers()
252 test_skipping(reporter, bufferSize); in test_buffers()
253 test_read_beyond_buffer(reporter, bufferSize); in test_buffers()
254 test_length_combos(reporter, bufferSize); in test_buffers()
255 test_initial_offset(reporter, bufferSize); in test_buffers()