| /external/cronet/net/disk_cache/blockfile/ |
| D | stats_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/blockfile/stats.h" 12 disk_cache::Stats stats; in TEST() 13 EXPECT_TRUE(stats.Init(nullptr, 0, disk_cache::Addr())); in TEST() 14 EXPECT_EQ(0, stats.GetCounter(disk_cache::Stats::TRIM_ENTRY)); in TEST() 18 disk_cache::Stats stats; in TEST() 23 ASSERT_TRUE(stats.Init(storage.get(), required_len, disk_cache::Addr())); in TEST() 24 EXPECT_EQ(0, stats.GetCounter(disk_cache::Stats::TRIM_ENTRY)); in TEST() 28 disk_cache::Stats stats; in TEST() 35 disk_cache::Addr addr; in TEST() [all …]
|
| D | storage_block_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 6 #include "net/disk_cache/blockfile/disk_format.h" 7 #include "net/disk_cache/blockfile/storage_block-inl.h" 8 #include "net/disk_cache/blockfile/storage_block.h" 9 #include "net/disk_cache/disk_cache_test_base.h" 10 #include "net/disk_cache/disk_cache_test_util.h" 13 typedef disk_cache::StorageBlock<disk_cache::EntryStore> CacheEntryBlock; 17 auto file = base::MakeRefCounted<disk_cache::MappedFile>(); in TEST_F() 19 ASSERT_TRUE(file->Init(filename, 8192)); in TEST_F() 21 CacheEntryBlock entry1(file.get(), disk_cache::Addr(0xa0010001)); in TEST_F() [all …]
|
| D | file_ios.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/blockfile/file.h" 18 #include "net/disk_cache/blockfile/in_flight_io.h" 19 #include "net/disk_cache/disk_cache.h" 25 class FileBackgroundIO : public disk_cache::BackgroundIO { 32 FileBackgroundIO(disk_cache::File* file, const void* buf, size_t buf_len, in FileBackgroundIO() 33 size_t offset, disk_cache::FileIOCallback* callback, in FileBackgroundIO() 34 disk_cache::InFlightIO* controller) in FileBackgroundIO() 35 : disk_cache::BackgroundIO(controller), callback_(callback), file_(file), in FileBackgroundIO() 42 disk_cache::FileIOCallback* callback() { in callback() [all …]
|
| D | rankings.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/blockfile/rankings.h" 17 #include "net/disk_cache/blockfile/backend_impl.h" 18 #include "net/disk_cache/blockfile/disk_format.h" 19 #include "net/disk_cache/blockfile/entry_impl.h" 20 #include "net/disk_cache/blockfile/errors.h" 21 #include "net/disk_cache/blockfile/stress_support.h" 30 namespace disk_cache { namespace 53 Transaction(volatile disk_cache::LruData* data, disk_cache::Addr addr, 61 raw_ptr<volatile disk_cache::LruData> data_; [all …]
|
| /external/cronet/net/tools/crash_cache/ |
| D | crash_cache.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 // This command-line program generates the set of files needed for the crash- 29 #include "net/disk_cache/backend_cleanup_tracker.h" 30 #include "net/disk_cache/blockfile/backend_impl.h" 31 #include "net/disk_cache/blockfile/rankings.h" 32 #include "net/disk_cache/disk_cache.h" 33 #include "net/disk_cache/disk_cache_test_util.h" 38 GENERIC = -1, 45 using disk_cache::RankCrashes; 75 for (int i = disk_cache::NO_CRASH + 1; i < disk_cache::MAX_CRASH; i++) { in MasterCode() [all …]
|
| /external/cronet/net/tools/dump_cache/ |
| D | dump_files.cc | 2 // Use of this source code is governed by a BSD-style license that can be 28 #include "net/disk_cache/blockfile/block_files.h" 29 #include "net/disk_cache/blockfile/disk_format.h" 30 #include "net/disk_cache/blockfile/mapped_file.h" 31 #include "net/disk_cache/blockfile/stats.h" 32 #include "net/disk_cache/blockfile/storage_block-inl.h" 33 #include "net/disk_cache/blockfile/storage_block.h" 57 disk_cache::IndexHeader header; in GetMajorVersionFromFile() 65 void DumpStats(const base::FilePath& path, disk_cache::CacheAddr addr) { in DumpStats() 69 disk_cache::BlockFiles block_files(path); in DumpStats() [all …]
|
| /external/cronet/net/disk_cache/ |
| D | disk_cache_test_base.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/disk_cache_test_base.h" 20 #include "net/disk_cache/backend_cleanup_tracker.h" 21 #include "net/disk_cache/blockfile/backend_impl.h" 22 #include "net/disk_cache/cache_util.h" 23 #include "net/disk_cache/disk_cache.h" 24 #include "net/disk_cache/disk_cache_test_util.h" 25 #include "net/disk_cache/memory/mem_backend_impl.h" 26 #include "net/disk_cache/simple/simple_backend_impl.h" 27 #include "net/disk_cache/simple/simple_file_tracker.h" [all …]
|
| D | backend_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 45 #include "net/disk_cache/backend_cleanup_tracker.h" 46 #include "net/disk_cache/blockfile/backend_impl.h" 47 #include "net/disk_cache/blockfile/entry_impl.h" 48 #include "net/disk_cache/blockfile/experiments.h" 49 #include "net/disk_cache/blockfile/mapped_file.h" 50 #include "net/disk_cache/cache_util.h" 51 #include "net/disk_cache/disk_cache_test_base.h" 52 #include "net/disk_cache/disk_cache_test_util.h" 53 #include "net/disk_cache/memory/mem_backend_impl.h" [all …]
|
| D | disk_cache.cc | 2 // Use of this source code is governed by a BSD-style license that can be 21 #include "net/disk_cache/backend_cleanup_tracker.h" 22 #include "net/disk_cache/blockfile/backend_impl.h" 23 #include "net/disk_cache/cache_util.h" 24 #include "net/disk_cache/disk_cache.h" 25 #include "net/disk_cache/memory/mem_backend_impl.h" 26 #include "net/disk_cache/simple/simple_backend_impl.h" 27 #include "net/disk_cache/simple/simple_file_enumerator.h" 28 #include "net/disk_cache/simple/simple_util.h" 32 using FileEnumerator = disk_cache::BackendFileOperations::FileEnumerator; [all …]
|
| D | disk_cache_test_base.h | 2 // Use of this source code is governed by a BSD-style license that can be 17 #include "net/disk_cache/disk_cache.h" 28 namespace disk_cache { 37 } // namespace disk_cache 68 std::unique_ptr<disk_cache::Backend::Iterator> iterator); 71 int OpenNextEntry(disk_cache::Entry** next_entry); 74 std::unique_ptr<disk_cache::Backend::Iterator> iterator_; 107 // Deletes and re-creates the files on initialization errors. 141 disk_cache::EntryResult OpenOrCreateEntry(const std::string& key); 142 disk_cache::EntryResult OpenOrCreateEntryWithPriority( [all …]
|
| D | disk_cache_perftest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 32 #include "net/disk_cache/backend_cleanup_tracker.h" 33 #include "net/disk_cache/blockfile/backend_impl.h" 34 #include "net/disk_cache/blockfile/block_files.h" 35 #include "net/disk_cache/disk_cache.h" 36 #include "net/disk_cache/disk_cache_test_base.h" 37 #include "net/disk_cache/disk_cache_test_util.h" 38 #include "net/disk_cache/simple/simple_backend_impl.h" 39 #include "net/disk_cache/simple/simple_index.h" 40 #include "net/disk_cache/simple/simple_index_file.h" [all …]
|
| D | disk_cache_test_util.h | 2 // Use of this source code is governed by a BSD-style license that can be 19 #include "net/disk_cache/disk_cache.h" 21 // Re-creates a given test file inside the cache test folder. 34 // |max_size|, if non-zero, will be set as its size. 40 // ----------------------------------------------------------------------- 44 bool operator()(const disk_cache::BackendResult& result) const { in operator() 49 net::internal::TestCompletionCallbackTemplate<disk_cache::BackendResult, 64 disk_cache::BackendResultCallback callback(); 70 bool operator()(const disk_cache::EntryResult& result) const { in operator() 75 net::internal::TestCompletionCallbackTemplate<disk_cache::EntryResult, [all …]
|
| D | README.md | 1 # disk_cache API 3 The disk_cache API provides for caches that can store multiple random-access 40 [`net/disk_cache/disk_cache.h`](/net/disk_cache/disk_cache.h) is the only 42 `disk_cache::CreateCacheBackend()` is the first method you'll need to call. 48 ### [disk_cache/blockfile directory](/net/disk_cache/blockfile/) 55 ### [disk_cache/memory directory](/net/disk_cache/memory/) 57 This contains the in-memory-only implementation. It's used for incognito 60 ### [disk_cache/simple directory](/net/disk_cache/simple/) 65 precisely for streams 0 and 1), with a compact and simple in-memory index for
|
| D | entry_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 26 #include "net/disk_cache/blockfile/backend_impl.h" 27 #include "net/disk_cache/blockfile/entry_impl.h" 28 #include "net/disk_cache/cache_util.h" 29 #include "net/disk_cache/disk_cache_test_base.h" 30 #include "net/disk_cache/disk_cache_test_util.h" 31 #include "net/disk_cache/memory/mem_entry_impl.h" 32 #include "net/disk_cache/simple/simple_backend_impl.h" 33 #include "net/disk_cache/simple/simple_entry_format.h" 34 #include "net/disk_cache/simple/simple_entry_impl.h" [all …]
|
| D | disk_cache_test_util.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/disk_cache_test_util.h" 13 #include "net/disk_cache/blockfile/backend_impl.h" 14 #include "net/disk_cache/blockfile/file.h" 15 #include "net/disk_cache/cache_util.h" 57 disk_cache::DeleteCache(path, false); in DeleteCache() 65 auto cache = std::make_unique<disk_cache::BackendImpl>( in CheckCacheIntegrity() 67 net::DISK_CACHE, nullptr); in CheckCacheIntegrity() 69 cache->SetMaxSize(max_size); in CheckCacheIntegrity() 73 cache->SetNewEviction(); in CheckCacheIntegrity() [all …]
|
| D | disk_cache_fuzzer.cc | 2 // Use of this source code is governed by a BSD-style license that can be 33 #include "net/disk_cache/backend_cleanup_tracker.h" 34 #include "net/disk_cache/blockfile/backend_impl.h" 35 #include "net/disk_cache/disk_cache.h" 36 #include "net/disk_cache/disk_cache_fuzzer.pb.h" 37 #include "net/disk_cache/disk_cache_test_util.h" 38 #include "net/disk_cache/memory/mem_backend_impl.h" 39 #include "net/disk_cache/simple/simple_backend_impl.h" 40 #include "net/disk_cache/simple/simple_file_tracker.h" 41 #include "net/disk_cache/simple/simple_index.h" [all …]
|
| /external/cronet/net/disk_cache/simple/ |
| D | simple_version_upgrade_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/simple/simple_version_upgrade.h" 16 #include "net/disk_cache/disk_cache.h" 17 #include "net/disk_cache/simple/simple_backend_version.h" 18 #include "net/disk_cache/simple/simple_entry_format_history.h" 23 // Same as |disk_cache::kSimpleInitialMagicNumber|. 31 const char kIndexDirName[] = "index-dir"; 34 const char kIndexFileName[] = "the-real-index"; 37 disk_cache::FakeIndexData data; in WriteFakeIndexFileV5() 51 disk_cache::FakeIndexData data; in TEST() [all …]
|
| D | simple_index_file_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/simple/simple_index_file.h" 23 #include "net/disk_cache/backend_cleanup_tracker.h" 24 #include "net/disk_cache/disk_cache.h" 25 #include "net/disk_cache/disk_cache_test_util.h" 26 #include "net/disk_cache/simple/simple_backend_impl.h" 27 #include "net/disk_cache/simple/simple_backend_version.h" 28 #include "net/disk_cache/simple/simple_entry_format.h" 29 #include "net/disk_cache/simple/simple_index.h" 30 #include "net/disk_cache/simple/simple_util.h" [all …]
|
| D | simple_test_util.cc | 2 // Use of this source code is governed by a BSD-style license that can be 5 #include "net/disk_cache/simple/simple_test_util.h" 10 #include "net/disk_cache/simple/simple_entry_format.h" 11 #include "net/disk_cache/simple/simple_util.h" 13 namespace disk_cache::simple_util { namespace 21 disk_cache::simple_util::GetFilenameFromKeyAndFileIndex(key, 0)); in CreateCorruptFileForTests() 34 disk_cache::simple_util::GetFilenameFromKeyAndFileIndex(key, 0)); in RemoveKeySHA256FromEntry() 43 if (entry_file.Read(file_length - sizeof(eof_record), in RemoveKeySHA256FromEntry() 48 if (eof_record.final_magic_number != disk_cache::kSimpleFinalMagicNumber || in RemoveKeySHA256FromEntry() 58 file_length - sizeof(eof_record) - sizeof(net::SHA256HashValue), in RemoveKeySHA256FromEntry() [all …]
|
| D | simple_file_tracker_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 17 #include "net/disk_cache/disk_cache.h" 18 #include "net/disk_cache/disk_cache_test_base.h" 19 #include "net/disk_cache/simple/simple_file_tracker.h" 20 #include "net/disk_cache/simple/simple_histogram_enums.h" 21 #include "net/disk_cache/simple/simple_synchronous_entry.h" 24 namespace disk_cache { namespace 45 fixture_->DeleteSyncEntry(entry); in operator ()() 58 net::DISK_CACHE, cache_path_, "dummy", hash, &file_tracker_, in MakeSyncEntry() 59 base::MakeRefCounted<disk_cache::TrivialFileOperationsFactory>() in MakeSyncEntry() [all …]
|
| /external/cronet/net/http/ |
| D | http_cache_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 51 #include "net/disk_cache/disk_cache.h" 78 #include "third_party/abseil-cpp/absl/types/optional.h" 175 //----------------------------------------------------------------------------- 213 int rv = cache->CreateTransaction(DEFAULT_PRIORITY, &trans); in RunTransactionTestBase() 217 rv = trans->Start(&request, callback.callback(), net_log); in RunTransactionTestBase() 225 const HttpResponseInfo* response = trans->GetResponseInfo(); in RunTransactionTestBase() 236 trans->GetLoadTimingInfo(load_timing_info); in RunTransactionTestBase() 240 ASSERT_TRUE(trans->GetRemoteEndpoint(remote_endpoint)); in RunTransactionTestBase() 245 *sent_bytes = trans->GetTotalSentBytes(); in RunTransactionTestBase() [all …]
|
| D | mock_http_cache.h | 2 // Use of this source code is governed by a BSD-style license that can be 25 #include "net/disk_cache/disk_cache.h" 31 //----------------------------------------------------------------------------- 34 class MockDiskEntry : public disk_cache::Entry, 159 class MockDiskCache : public disk_cache::Backend { 209 // the entry is re-created. The value is formed as a bitmask of 283 disk_cache::BackendResult CreateBackend( 285 disk_cache::BackendResultCallback callback) override; 299 disk_cache::Backend* backend(); 300 MockDiskCache* disk_cache(); [all …]
|
| /external/mesa3d/src/util/ |
| D | disk_cache.h | 36 #include "util/mesa-sha1.h" 80 struct disk_cache; 97 "is bogus! Disabling On-disk cache.\n"); in disk_cache_get_function_timestamp() 159 * that callers will compute appropriate SHA-1 signatures for keys, 161 * names are computed). See mesa-sha1.h and _mesa_sha1_compute for 162 * assistance in computing SHA-1 signatures. 164 struct disk_cache * 172 disk_cache_destroy(struct disk_cache *cache); 178 disk_cache_wait_for_idle(struct disk_cache *cache); 184 disk_cache_remove(struct disk_cache *cache, const cache_key key); [all …]
|
| D | disk_cache_os.h | 47 #define CACHE_INDEX_KEY_MASK ((1 << CACHE_INDEX_KEY_BITS) - 1) 59 struct disk_cache { struct 106 struct disk_cache *foz_ro_cache; argument 117 struct disk_cache *cache; 136 disk_cache_evict_lru_item(struct disk_cache *cache); 139 disk_cache_evict_item(struct disk_cache *cache, char *filename); 142 disk_cache_load_item_foz(struct disk_cache *cache, const cache_key key, 146 disk_cache_load_item(struct disk_cache *cache, char *filename, size_t *size); 149 disk_cache_get_cache_filename(struct disk_cache *cache, const cache_key key); 162 disk_cache_load_cache_index_foz(void *mem_ctx, struct disk_cache *cache); [all …]
|
| /external/cronet/net/ |
| D | BUILD.gn | 2 # Use of this source code is governed by a BSD-style license that can be 33 # pretty confident that mmap-ing the index would not hurt any existing x86 45 # platform-specific code deep in //net. Nowadays, this is abstracted away and 46 # we could enable the interfaces on iOS for platform-independence. However, 52 # If fixing this, re-enable the tests in ssl_client_socket_unittest.cc and 83 …s://www.chromium.org/developers/design-documents/http-authentication/writing-a-spnego-authenticato… 417 "disk_cache/backend_cleanup_tracker.cc", 418 "disk_cache/backend_cleanup_tracker.h", 419 "disk_cache/blockfile/addr.cc", 420 "disk_cache/blockfile/addr.h", [all …]
|