Searched refs:eof_record (Results 1 – 4 of 4) sorted by relevance
/external/cronet/net/disk_cache/simple/ |
D | simple_test_util.cc | 40 SimpleFileEOF eof_record; in RemoveKeySHA256FromEntry() local 41 if (file_length < static_cast<int64_t>(sizeof(eof_record))) in RemoveKeySHA256FromEntry() 43 if (entry_file.Read(file_length - sizeof(eof_record), in RemoveKeySHA256FromEntry() 44 reinterpret_cast<char*>(&eof_record), in RemoveKeySHA256FromEntry() 45 sizeof(eof_record)) != sizeof(eof_record)) { in RemoveKeySHA256FromEntry() 48 if (eof_record.final_magic_number != disk_cache::kSimpleFinalMagicNumber || in RemoveKeySHA256FromEntry() 49 (eof_record.flags & SimpleFileEOF::FLAG_HAS_KEY_SHA256) != in RemoveKeySHA256FromEntry() 56 eof_record.flags &= ~SimpleFileEOF::FLAG_HAS_KEY_SHA256; in RemoveKeySHA256FromEntry() 58 file_length - sizeof(eof_record) - sizeof(net::SHA256HashValue), in RemoveKeySHA256FromEntry() 59 reinterpret_cast<char*>(&eof_record), in RemoveKeySHA256FromEntry() [all …]
|
D | simple_synchronous_entry.cc | 1005 SimpleFileEOF eof_record; in CheckEOFRecord() local 1009 GetEOFRecordData(file, nullptr, file_index, file_offset, &eof_record); in CheckEOFRecord() 1015 if ((eof_record.flags & SimpleFileEOF::FLAG_HAS_CRC32) && in CheckEOFRecord() 1016 eof_record.data_crc32 != expected_crc32) { in CheckEOFRecord() 1032 const SimpleFileEOF& eof_record, in PreReadStreamPayload() argument 1047 if ((eof_record.flags & SimpleFileEOF::FLAG_HAS_CRC32) && in PreReadStreamPayload() 1048 eof_record.data_crc32 != expected_crc32) { in PreReadStreamPayload() 1117 SimpleFileEOF eof_record; in Close() local 1118 eof_record.stream_size = entry_stat.data_size(stream_index); in Close() 1119 eof_record.final_magic_number = kSimpleFinalMagicNumber; in Close() [all …]
|
D | simple_synchronous_entry.h | 404 SimpleFileEOF* eof_record); 428 const SimpleFileEOF& eof_record,
|
/external/cronet/net/disk_cache/ |
D | entry_unittest.cc | 4346 disk_cache::SimpleFileEOF eof_record; in TEST_F() local 4347 ASSERT_EQ(static_cast<int>(sizeof(eof_record)), in TEST_F() 4348 entry_file0.Read(eof_offset, reinterpret_cast<char*>(&eof_record), in TEST_F() 4349 sizeof(eof_record))); in TEST_F() 4350 EXPECT_EQ(disk_cache::kSimpleFinalMagicNumber, eof_record.final_magic_number); in TEST_F() 4351 EXPECT_TRUE((eof_record.flags & disk_cache::SimpleFileEOF::FLAG_HAS_CRC32) == in TEST_F()
|