Lines Matching refs:MockDiskEntry

76 struct MockDiskEntry::CallbackInfo {
77 scoped_refptr<MockDiskEntry> entry;
82 MockDiskEntry::MockDiskEntry(const std::string& key) in MockDiskEntry() function in net::MockDiskEntry
98 void MockDiskEntry::Doom() { in Doom()
102 void MockDiskEntry::Close() { in Close()
106 std::string MockDiskEntry::GetKey() const { in GetKey()
110 base::Time MockDiskEntry::GetLastUsed() const { in GetLastUsed()
114 base::Time MockDiskEntry::GetLastModified() const { in GetLastModified()
118 int32_t MockDiskEntry::GetDataSize(int index) const { in GetDataSize()
123 int MockDiskEntry::ReadData(int index, in ReadData()
157 void MockDiskEntry::ResumeDiskEntryOperation() { in ResumeDiskEntryOperation()
163 int MockDiskEntry::WriteData(int index, in WriteData()
203 int MockDiskEntry::ReadSparseData(int64_t offset, in ReadSparseData()
236 int MockDiskEntry::WriteSparseData(int64_t offset, in WriteSparseData()
274 int MockDiskEntry::GetAvailableRange(int64_t offset, in GetAvailableRange()
314 bool MockDiskEntry::CouldBeSparse() const { in CouldBeSparse()
320 void MockDiskEntry::CancelSparseIO() { in CancelSparseIO()
324 net::Error MockDiskEntry::ReadyForSparseIO(CompletionOnceCallback callback) { in ReadyForSparseIO()
341 void MockDiskEntry::SetLastUsedTimeForTest(base::Time time) { in SetLastUsedTimeForTest()
349 void MockDiskEntry::IgnoreCallbacks(bool value) { in IgnoreCallbacks()
357 MockDiskEntry::~MockDiskEntry() = default;
362 void MockDiskEntry::CallbackLater(CompletionOnceCallback callback, int result) { in CallbackLater()
366 FROM_HERE, base::BindOnce(&MockDiskEntry::RunCallback, this, in CallbackLater()
370 void MockDiskEntry::RunCallback(CompletionOnceCallback callback, int result) { in RunCallback()
392 void MockDiskEntry::StoreAndDeliverCallbacks(bool store, in StoreAndDeliverCallbacks()
393 MockDiskEntry* entry, in StoreAndDeliverCallbacks()
410 bool MockDiskEntry::ignore_callbacks_ = false;
427 defer_op_(MockDiskEntry::DEFER_NONE) {} in MockDiskCache()
497 MockDiskEntry* entry = it->second; in OpenEntry()
543 MockDiskEntry* new_entry = new MockDiskEntry(key); in CreateEntry()
565 if (defer_op_ == MockDiskEntry::DEFER_CREATE) { in CreateEntry()
566 defer_op_ = MockDiskEntry::DEFER_NONE; in CreateEntry()
688 scoped_refptr<MockDiskEntry> MockDiskCache::GetDiskEntryRef( in GetDiskEntryRef()