#ifndef NET_HTTP_MOCK_HTTP_CACHE_H_
#define NET_HTTP_MOCK_HTTP_CACHE_H_
#include <stdint.h>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/strings/string_split.h"
#include "net/base/completion_once_callback.h"
#include "net/base/request_priority.h"
#include "net/disk_cache/disk_cache.h"
#include "net/http/http_cache.h"
#include "net/http/http_transaction_test_util.h"
namespace net {
class MockDiskEntry : public disk_cache::Entry,
public base::RefCounted<MockDiskEntry> { … };
class MockDiskCache : public disk_cache::Backend { … };
class MockBackendFactory : public HttpCache::BackendFactory { … };
class MockHttpCache { … };
class MockDiskCacheNoCB : public MockDiskCache { … };
class MockBackendNoCbFactory : public HttpCache::BackendFactory { … };
class MockBlockingBackendFactory : public HttpCache::BackendFactory { … };
struct GetBackendResultIsPendingHelper { … };
using TestGetBackendCompletionCallbackBase =
net::internal::TestCompletionCallbackTemplate<
HttpCache::GetBackendResult,
GetBackendResultIsPendingHelper>;
class TestGetBackendCompletionCallback
: public TestGetBackendCompletionCallbackBase { … };
}
#endif