Searched refs:MockDiskEntry (Results 1 – 8 of 8) sorted by relevance
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/net/http/ |
H A D | mock_http_cache.cc | 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() 123 int MockDiskEntry::ReadData(int index, in ReadData() 163 int MockDiskEntry::WriteData(int index, in WriteData() 320 void MockDiskEntry::CancelSparseIO() { in CancelSparseIO() 357 MockDiskEntry::~MockDiskEntry() = default; 497 MockDiskEntry* entry = it->second; in OpenEntry() [all …]
|
H A D | mock_http_cache.h | 33 class MockDiskEntry : public disk_cache::Entry, 34 public base::RefCounted<MockDiskEntry> { 53 explicit MockDiskEntry(const std::string& key); 117 friend class base::RefCounted<MockDiskEntry>; 120 ~MockDiskEntry() override; 132 MockDiskEntry* entry, 247 void SetDefer(MockDiskEntry::DeferOp defer_op) { defer_op_ = defer_op; } in SetDefer() 254 scoped_refptr<MockDiskEntry> GetDiskEntryRef(const std::string& key); 260 using EntryMap = std::map<std::string, MockDiskEntry*>; 280 MockDiskEntry::DeferOp defer_op_;
|
H A D | http_cache_writers_unittest.cc | 98 (static_cast<MockDiskEntry*>(disk_entry_))->AddRef(); in CreateWriters() 388 cache_.disk_cache()->set_soft_failures_mask(MockDiskEntry::FAIL_ALL); in ReadCacheWriteFailure()
|
H A D | http_cache_unittest.cc | 943 cache.disk_cache()->set_soft_failures_mask(MockDiskEntry::FAIL_ALL); in TEST_F() 2029 scoped_refptr<MockDiskEntry> first_entry; in TEST_F() 2030 scoped_refptr<MockDiskEntry> second_entry; in TEST_F() 2046 first_entry->SetDefer(MockDiskEntry::DEFER_READ); in TEST_F() 2115 scoped_refptr<MockDiskEntry> first_entry; in TEST_F() 2128 cache.disk_cache()->SetDefer(MockDiskEntry::DEFER_CREATE); in TEST_F() 2133 first_entry->SetDefer(MockDiskEntry::DEFER_READ); in TEST_F() 3484 scoped_refptr<MockDiskEntry> entry = in TEST_F() 3486 entry->SetDefer(MockDiskEntry::DEFER_WRITE); in TEST_F() 8772 MockDiskEntry::IgnoreCallbacks(true); in TEST_F() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/net/http/ |
H A D | mock_http_cache.cc | 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() 123 int MockDiskEntry::ReadData(int index, in ReadData() 163 int MockDiskEntry::WriteData(int index, in WriteData() 320 void MockDiskEntry::CancelSparseIO() { in CancelSparseIO() 357 MockDiskEntry::~MockDiskEntry() = default; 497 MockDiskEntry* entry = it->second; in OpenEntry() [all …]
|
H A D | mock_http_cache.h | 33 class MockDiskEntry : public disk_cache::Entry, 34 public base::RefCounted<MockDiskEntry> { 53 explicit MockDiskEntry(const std::string& key); 117 friend class base::RefCounted<MockDiskEntry>; 120 ~MockDiskEntry() override; 132 MockDiskEntry* entry, 247 void SetDefer(MockDiskEntry::DeferOp defer_op) { defer_op_ = defer_op; } in SetDefer() 254 scoped_refptr<MockDiskEntry> GetDiskEntryRef(const std::string& key); 260 using EntryMap = std::map<std::string, MockDiskEntry*>; 280 MockDiskEntry::DeferOp defer_op_;
|
H A D | http_cache_writers_unittest.cc | 98 (static_cast<MockDiskEntry*>(disk_entry_))->AddRef(); in CreateWriters() 388 cache_.disk_cache()->set_soft_failures_mask(MockDiskEntry::FAIL_ALL); in ReadCacheWriteFailure()
|
H A D | http_cache_unittest.cc | 1049 cache.disk_cache()->set_soft_failures_mask(MockDiskEntry::FAIL_ALL); in TEST_F() 2261 scoped_refptr<MockDiskEntry> first_entry; in TEST_F() 2262 scoped_refptr<MockDiskEntry> second_entry; in TEST_F() 2278 first_entry->SetDefer(MockDiskEntry::DEFER_READ); in TEST_F() 2347 scoped_refptr<MockDiskEntry> first_entry; in TEST_F() 2360 cache.disk_cache()->SetDefer(MockDiskEntry::DEFER_CREATE); in TEST_F() 2365 first_entry->SetDefer(MockDiskEntry::DEFER_READ); in TEST_F() 3716 scoped_refptr<MockDiskEntry> entry = in TEST_F() 3718 entry->SetDefer(MockDiskEntry::DEFER_WRITE); in TEST_F() 9004 MockDiskEntry::IgnoreCallbacks(true); in TEST_F() [all …]
|