Lines Matching refs:records
131 std::vector<std::unique_ptr<Record>> records; in CreateFakeRecords() local
135 records.emplace_back(r); in CreateFakeRecords()
137 return records; in CreateFakeRecords()
158 std::vector<std::unique_ptr<Record>> records = CreateFakeRecords(attr, 10, 0, 0); in TEST() local
160 size_t data_size = records.size() * records[0]->size(); in TEST()
165 memcpy(&buffer[data_pos], records[0]->Binary(), 4); in TEST()
166 memcpy(&buffer[0], records[0]->Binary() + 4, records[0]->size() - 4); in TEST()
167 size_t pos = records[0]->size() - 4; in TEST()
168 for (size_t i = 1; i < records.size(); ++i) { in TEST()
169 memcpy(&buffer[pos], records[i]->Binary(), records[i]->size()); in TEST()
170 pos += records[i]->size(); in TEST()
181 for (size_t i = 0; i < records.size(); ++i) { in TEST()
183 ASSERT_EQ(reader.RecordHeader().type, records[i]->type()); in TEST()
184 ASSERT_EQ(reader.RecordHeader().size, records[i]->size()); in TEST()
185 ASSERT_EQ(reader.RecordTime(), records[i]->Timestamp()); in TEST()
188 ASSERT_EQ(0, memcmp(&data[0], records[i]->Binary(), records[i]->size())); in TEST()