Lines Matching refs:reader
85 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local
86 EXPECT_EQ(NO_ERROR, reader->Status()) in TEST_F()
91 reader->ReadNextHeader(&done, &type); in TEST_F()
97 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
105 EXPECT_EQ((int) dataSize, reader->ReadEntityData(dataBytes, dataSize)) in TEST_F()
113 delete reader; in TEST_F()
126 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local
134 reader->ReadNextHeader(&done, &type); in TEST_F()
135 reader->ReadEntityHeader(&key, &dataSize); in TEST_F()
137 reader->ReadEntityData(dataBytes, dataSize); in TEST_F()
141 reader->ReadNextHeader(&done, &type); in TEST_F()
145 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
153 EXPECT_EQ((int)dataSize, reader->ReadEntityData(dataBytes, dataSize)) in TEST_F()
161 delete reader; in TEST_F()
176 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local
184 reader->ReadNextHeader(&done, &type); in TEST_F()
185 reader->ReadEntityHeader(&key, &dataSize); in TEST_F()
187 reader->ReadEntityData(dataBytes, dataSize); in TEST_F()
191 reader->ReadNextHeader(&done, &type); in TEST_F()
192 reader->ReadEntityHeader(&key, &dataSize); in TEST_F()
193 reader->SkipEntityData(); in TEST_F()
196 reader->ReadNextHeader(&done, &type); in TEST_F()
200 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
208 EXPECT_EQ((int) dataSize, reader->ReadEntityData(dataBytes, dataSize)) in TEST_F()
216 delete reader; in TEST_F()
228 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local
236 reader->ReadNextHeader(&done, &type); in TEST_F()
237 reader->ReadEntityHeader(&key, &dataSize); in TEST_F()
239 reader->ReadEntityData(dataBytes, dataSize); in TEST_F()
243 reader->ReadNextHeader(&done, &type); in TEST_F()
247 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
255 delete reader; in TEST_F()
269 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local
277 reader->ReadNextHeader(&done, &type); in TEST_F()
278 reader->ReadEntityHeader(&key, &dataSize); in TEST_F()
280 reader->ReadEntityData(dataBytes, dataSize); in TEST_F()
284 reader->ReadNextHeader(&done, &type); in TEST_F()
288 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
296 reader->ReadNextHeader(&done, &type); in TEST_F()
300 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
308 EXPECT_EQ((int) dataSize, reader->ReadEntityData(dataBytes, dataSize)) in TEST_F()
316 delete reader; in TEST_F()
329 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local
336 reader->ReadNextHeader(&done, &type); in TEST_F()
340 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
348 reader->ReadNextHeader(&done, &type); in TEST_F()
352 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
360 reader->ReadNextHeader(&done, &type); in TEST_F()
364 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
372 reader->ReadNextHeader(&done, &type); in TEST_F()
376 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
384 delete reader; in TEST_F()
395 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local
402 reader->ReadNextHeader(&done, &type); in TEST_F()
406 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
416 EXPECT_EQ(NO_ERROR, reader->ReadEntityData(dataBytes, dataSize)); in TEST_F()
421 reader->ReadNextHeader(&done, &type); in TEST_F()
425 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
434 delete reader; in TEST_F()