Lines Matching refs:chunk
75 SerializedLogChunk chunk(max_size / SerializedLogBuffer::kChunkSizeDivisor); in CreateChunk() local
78 if (!chunk.CanLog(sizeof(SerializedLogEntry) + entry.msg.size())) { in CreateChunk()
80 return chunk; in CreateChunk()
82 chunk.Log(entry.sequence, entry.realtime, entry.uid, entry.pid, entry.tid, entry.msg.data(), in CreateChunk()
86 chunk.FinishWriting(); in CreateChunk()
88 return chunk; in CreateChunk()
93 int chunk = 0; in VerifyChunks() local
96 for (; expected_it != expected.end() && it != chunks.end(); ++expected_it, ++it, ++chunk) { in VerifyChunks()
97 EXPECT_EQ(expected_it->reader_ref_count_, it->reader_ref_count_) << "chunk #" << chunk; in VerifyChunks()
98 EXPECT_EQ(expected_it->writer_active_, it->writer_active_) << "chunk #" << chunk; in VerifyChunks()
100 << "chunk #" << chunk; in VerifyChunks()
101 EXPECT_EQ(expected_it->readers_, it->readers_) << "chunk #" << chunk; in VerifyChunks()
103 ASSERT_EQ(expected_it->contents_.size(), it->contents_.size()) << "chunk #" << chunk; in VerifyChunks()
104 ASSERT_EQ(expected_it->write_offset_, it->write_offset_) << "chunk #" << chunk; in VerifyChunks()
108 << "chunk #" << chunk; in VerifyChunks()
113 << "chunk #" << chunk; in VerifyChunks()
117 << "chunk #" << chunk; in VerifyChunks()