Lines Matching refs:ASSERT_EQ
214 ASSERT_EQ(initial_offset_record_sizes_[expected_record_offset],
216 ASSERT_EQ(initial_offset_last_record_offsets_[expected_record_offset],
218 ASSERT_EQ((char)('a' + expected_record_offset), record.data()[0]);
239 ASSERT_EQ("EOF", Read());
247 ASSERT_EQ("foo", Read());
248 ASSERT_EQ("bar", Read());
249 ASSERT_EQ("", Read());
250 ASSERT_EQ("xxxx", Read());
251 ASSERT_EQ("EOF", Read());
252 ASSERT_EQ("EOF", Read()); // Make sure reads at eof work
260 ASSERT_EQ(NumberString(i), Read());
262 ASSERT_EQ("EOF", Read());
269 ASSERT_EQ("small", Read());
270 ASSERT_EQ(BigString("medium", 50000), Read());
271 ASSERT_EQ(BigString("large", 100000), Read());
272 ASSERT_EQ("EOF", Read());
279 ASSERT_EQ(kBlockSize - kHeaderSize, WrittenBytes());
282 ASSERT_EQ(BigString("foo", n), Read());
283 ASSERT_EQ("", Read());
284 ASSERT_EQ("bar", Read());
285 ASSERT_EQ("EOF", Read());
292 ASSERT_EQ(kBlockSize - kHeaderSize, WrittenBytes());
294 ASSERT_EQ(BigString("foo", n), Read());
295 ASSERT_EQ("bar", Read());
296 ASSERT_EQ("EOF", Read());
297 ASSERT_EQ(0, DroppedBytes());
298 ASSERT_EQ("", ReportMessage());
304 ASSERT_EQ(kBlockSize - kHeaderSize + 4, WrittenBytes());
307 ASSERT_EQ(BigString("foo", n), Read());
308 ASSERT_EQ("", Read());
309 ASSERT_EQ("bar", Read());
310 ASSERT_EQ("EOF", Read());
316 ASSERT_EQ(kBlockSize - kHeaderSize + 4, WrittenBytes());
317 ASSERT_EQ(BigString("foo", n), Read());
318 ASSERT_EQ("EOF", Read());
329 ASSERT_EQ(RandomSkewedString(i, &read_rnd), Read());
331 ASSERT_EQ("EOF", Read());
339 ASSERT_EQ("EOF", Read());
340 ASSERT_EQ(kBlockSize, DroppedBytes());
341 ASSERT_EQ("OK", MatchError("read error"));
349 ASSERT_EQ("EOF", Read());
350 ASSERT_EQ(3, DroppedBytes());
351 ASSERT_EQ("OK", MatchError("unknown record type"));
357 ASSERT_EQ("EOF", Read());
359 ASSERT_EQ(0, DroppedBytes());
360 ASSERT_EQ("", ReportMessage());
369 ASSERT_EQ("foo", Read());
370 ASSERT_EQ(kBlockSize, DroppedBytes());
371 ASSERT_EQ("OK", MatchError("bad record length"));
377 ASSERT_EQ("EOF", Read());
378 ASSERT_EQ(0, DroppedBytes());
379 ASSERT_EQ("", ReportMessage());
385 ASSERT_EQ("EOF", Read());
386 ASSERT_EQ(10, DroppedBytes());
387 ASSERT_EQ("OK", MatchError("checksum mismatch"));
394 ASSERT_EQ("EOF", Read());
395 ASSERT_EQ(3, DroppedBytes());
396 ASSERT_EQ("OK", MatchError("missing start"));
403 ASSERT_EQ("EOF", Read());
404 ASSERT_EQ(3, DroppedBytes());
405 ASSERT_EQ("OK", MatchError("missing start"));
413 ASSERT_EQ("bar", Read());
414 ASSERT_EQ("EOF", Read());
415 ASSERT_EQ(3, DroppedBytes());
416 ASSERT_EQ("OK", MatchError("partial record without end"));
424 ASSERT_EQ(BigString("bar", 100000), Read());
425 ASSERT_EQ("EOF", Read());
426 ASSERT_EQ(3, DroppedBytes());
427 ASSERT_EQ("OK", MatchError("partial record without end"));
434 ASSERT_EQ("EOF", Read());
435 ASSERT_EQ("", ReportMessage());
436 ASSERT_EQ(0, DroppedBytes());
443 ASSERT_EQ("EOF", Read());
444 ASSERT_EQ("", ReportMessage());
445 ASSERT_EQ(0, DroppedBytes());
464 ASSERT_EQ("correct", Read());
465 ASSERT_EQ("EOF", Read());