chromium/content/browser/indexed_db/indexed_db_quota_client_unittest.cc

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <stdint.h>

#include <cstdint>
#include <memory>
#include <utility>
#include <vector>

#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "base/threading/thread.h"
#include "components/services/storage/public/cpp/buckets/bucket_locator.h"
#include "components/services/storage/public/mojom/storage_usage_info.mojom.h"
#include "content/browser/indexed_db/indexed_db_context_impl.h"
#include "net/base/features.h"
#include "net/base/schemeful_site.h"
#include "storage/browser/test/mock_quota_manager.h"
#include "storage/browser/test/mock_special_storage_policy.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/quota/quota_types.mojom.h"
#include "url/origin.h"

StorageKey;
StorageType;

// Declared to shorten the line lengths.
static const StorageType kTemp =;

namespace content {

// Base class for our test fixtures.
class IndexedDBQuotaClientTest : public testing::Test,
                                 public testing::WithParamInterface<bool> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(IndexedDBQuotaClientTest, GetBucketUsageFirstParty) {}

TEST_P(IndexedDBQuotaClientTest, GetBucketUsageThirdParty) {}

TEST_P(IndexedDBQuotaClientTest, GetBucketUsageMixedParty) {}

TEST_P(IndexedDBQuotaClientTest, GetBucketUsageCustom) {}

TEST_P(IndexedDBQuotaClientTest, GetStorageKeysForTypeFirstParty) {}

TEST_P(IndexedDBQuotaClientTest, GetStorageKeysForTypeThirdParty) {}

TEST_P(IndexedDBQuotaClientTest, DeleteBucketFirstParty) {}

TEST_P(IndexedDBQuotaClientTest, DeleteBucketThirdParty) {}

TEST_P(IndexedDBQuotaClientTest, DeleteBucketMixedParty) {}

TEST_P(IndexedDBQuotaClientTest, DeleteBucketCustom) {}

TEST_P(IndexedDBQuotaClientTest, NonDefaultBucketFirstParty) {}

TEST_P(IndexedDBQuotaClientTest, NonDefaultBucketThirdParty) {}

TEST_P(IndexedDBQuotaClientTest,
       GetStorageKeyUsageForNonexistentKeyFirstParty) {}

TEST_P(IndexedDBQuotaClientTest,
       GetStorageKeyUsageForNonexistentKeyThirdParty) {}

TEST_P(IndexedDBQuotaClientTest,
       GetStorageKeyUsageForNonexistentKeyMixedParty) {}

TEST_P(IndexedDBQuotaClientTest, IncognitoQuotaFirstParty) {}

TEST_P(IndexedDBQuotaClientTest, IncognitoQuotaThirdParty) {}

}  // namespace content