#include "storage/browser/blob/blob_url_store_impl.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/unguessable_token.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "mojo/public/cpp/system/functions.h"
#include "net/base/features.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/url_loader_factory.mojom.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/blob/blob_url_registry.h"
#include "storage/browser/blob/features.h"
#include "testing/gtest/include/gtest/gtest.h"
BlobURLStore;
namespace storage {
namespace {
enum class PartitionedBlobUrlTestCase { … };
class BlobURLStoreImplTestP
: public testing::Test,
public testing::WithParamInterface<PartitionedBlobUrlTestCase> { … };
TEST_P(BlobURLStoreImplTestP, BasicRegisterRevoke) { … }
TEST_P(BlobURLStoreImplTestP, RegisterInvalidScheme) { … }
TEST_P(BlobURLStoreImplTestP, RegisterWrongOrigin) { … }
TEST_P(BlobURLStoreImplTestP, RegisterUrlFragment) { … }
TEST_P(BlobURLStoreImplTestP, ImplicitRevoke) { … }
TEST_P(BlobURLStoreImplTestP, RevokeThroughDifferentURLStore) { … }
TEST_P(BlobURLStoreImplTestP, RevokeInvalidScheme) { … }
TEST_P(BlobURLStoreImplTestP, RevokeWrongOrigin) { … }
TEST_P(BlobURLStoreImplTestP, RevokeURLWithFragment) { … }
TEST_P(BlobURLStoreImplTestP, RevokeWrongStorageKey) { … }
TEST_P(BlobURLStoreImplTestP, ResolveAsURLLoaderFactoryNonExistentURL) { … }
TEST_P(BlobURLStoreImplTestP, ResolveAsURLLoaderFactoryInvalidURL) { … }
TEST_P(BlobURLStoreImplTestP, ResolveAsURLLoaderFactory) { … }
TEST_P(BlobURLStoreImplTestP,
ResolveAsURLLoaderFactoryWithSeparateStorageKeys) { … }
TEST_P(BlobURLStoreImplTestP, ResolveAsURLLoaderFactoryWithFragmentUrl) { … }
TEST_P(BlobURLStoreImplTestP, ResolveForNavigation) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}