Lines Matching refs:records
150 std::vector<std::unique_ptr<Record>> records; in CreateFakeRecords() local
154 records.emplace_back(r); in CreateFakeRecords()
156 return records; in CreateFakeRecords()
177 std::vector<std::unique_ptr<Record>> records = CreateFakeRecords(attr, 10, 0, 0); in TEST() local
179 size_t data_size = records.size() * records[0]->size(); in TEST()
184 memcpy(&buffer[data_pos], records[0]->Binary(), 4); in TEST()
185 memcpy(&buffer[0], records[0]->Binary() + 4, records[0]->size() - 4); in TEST()
186 size_t pos = records[0]->size() - 4; in TEST()
187 for (size_t i = 1; i < records.size(); ++i) { in TEST()
188 memcpy(&buffer[pos], records[i]->Binary(), records[i]->size()); in TEST()
189 pos += records[i]->size(); in TEST()
201 for (size_t i = 0; i < records.size(); ++i) { in TEST()
203 ASSERT_EQ(reader.RecordHeader().type, records[i]->type()); in TEST()
204 ASSERT_EQ(reader.RecordHeader().size, records[i]->size()); in TEST()
205 ASSERT_EQ(reader.RecordTime(), records[i]->Timestamp()); in TEST()
208 ASSERT_EQ(0, memcmp(&data[0], records[i]->Binary(), records[i]->size())); in TEST()
420 auto read_records = [&](RecordReadThread& thread, std::vector<std::unique_ptr<Record>>& records) { in TEST_F() argument
421 records.clear(); in TEST_F()
427 records.emplace_back(std::move(r)); in TEST_F()