#include "content/browser/cache_storage/cache_storage_blob_to_disk_cache.h"
#include <memory>
#include <string>
#include <utility>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/null_task_runner.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/browser/cache_storage/scoped_writable_entry.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "net/disk_cache/disk_cache.h"
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_impl.h"
#include "storage/browser/blob/blob_storage_context.h"
#include "storage/browser/test/mock_quota_manager.h"
#include "storage/browser/test/mock_quota_manager_proxy.h"
#include "storage/browser/test/mock_special_storage_policy.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
namespace content {
namespace {
const char kTestData[] = …;
const char kEntryKey[] = …;
const int kCacheEntryIndex = …;
class TestCacheStorageBlobToDiskCache : public CacheStorageBlobToDiskCache { … };
class CacheStorageBlobToDiskCacheTest : public testing::Test { … };
TEST_F(CacheStorageBlobToDiskCacheTest, Stream) { … }
TEST_F(CacheStorageBlobToDiskCacheTest, StreamLarge) { … }
TEST_F(CacheStorageBlobToDiskCacheTest, TestDelayMidStream) { … }
TEST_F(CacheStorageBlobToDiskCacheTest, DeleteMidStream) { … }
TEST_F(CacheStorageBlobToDiskCacheTest, NotifyQuotaAboutWriteErrors) { … }
}
}