• Home
  • Raw
  • Download

Lines Matching refs:chunk

32     auto chunk = SerializedLogChunk{chunk_size};  in TEST()
33 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST()
37 ASSERT_TRUE(chunk.CanLog(expected_total_len)); in TEST()
38 EXPECT_TRUE(chunk.CanLog(chunk_size)); in TEST()
39 EXPECT_FALSE(chunk.CanLog(chunk_size + 1)); in TEST()
42 auto* entry = chunk.Log(1234, time, 0, 1, 2, log_message, sizeof(log_message)); in TEST()
54 EXPECT_FALSE(chunk.CanLog(chunk_size)); in TEST()
55 EXPECT_EQ(static_cast<int>(expected_total_len), chunk.write_offset()); in TEST()
56 EXPECT_EQ(1234U, chunk.highest_sequence_number()); in TEST()
63 auto chunk = SerializedLogChunk{chunk_size}; in TEST()
64 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST()
66 ASSERT_TRUE(chunk.CanLog(individual_message_size)); in TEST()
67 EXPECT_NE(nullptr, chunk.Log(1, log_time(), 1000, 1, 1, log_message, sizeof(log_message))); in TEST()
69 ASSERT_TRUE(chunk.CanLog(individual_message_size)); in TEST()
70 EXPECT_NE(nullptr, chunk.Log(2, log_time(), 1000, 2, 1, log_message, sizeof(log_message))); in TEST()
72 ASSERT_TRUE(chunk.CanLog(individual_message_size)); in TEST()
73 EXPECT_NE(nullptr, chunk.Log(3, log_time(), 1000, 3, 1, log_message, sizeof(log_message))); in TEST()
75 EXPECT_FALSE(chunk.CanLog(1)); in TEST()
80 auto chunk = SerializedLogChunk{chunk_size}; in TEST()
82 chunk.Log(2, log_time(0x1234, 0x5678), 0x111, 0x222, 0x333, "initial message", in TEST()
84 chunk.Log(3, log_time(0x2345, 0x6789), 0x444, 0x555, 0x666, "second message", in TEST()
88 chunk.Log(uint64_t_max, log_time(uint32_t_max, uint32_t_max), uint32_t_max, uint32_t_max, in TEST()
106 EXPECT_EQ(static_cast<uint8_t>(expected_buffer_data[i]), chunk.data()[i]) in TEST()
114 auto chunk = SerializedLogChunk{chunk_size}; in TEST_F()
115 EXPECT_DEATH({ chunk.DecReaderRefCount(); }, ""); in TEST_F()