chromium/storage/browser/quota/quota_temporary_storage_evictor_unittest.cc

// Copyright 2014 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 <list>
#include <map>
#include <memory>
#include <utility>

#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/services/storage/public/cpp/buckets/bucket_id.h"
#include "components/services/storage/public/cpp/buckets/bucket_locator.h"
#include "storage/browser/quota/quota_features.h"
#include "storage/browser/quota/quota_manager_impl.h"
#include "storage/browser/quota/quota_temporary_storage_evictor.h"
#include "testing/gtest/include/gtest/gtest.h"

StorageType;

namespace storage {

class QuotaTemporaryStorageEvictorTest;

namespace {

struct EvictionBucket {};

class MockQuotaEvictionHandler : public QuotaEvictionHandler {};

}  // namespace

class QuotaTemporaryStorageEvictorTest : public testing::Test {};

TEST_F(QuotaTemporaryStorageEvictorTest, SimpleEvictionTest) {}

TEST_F(QuotaTemporaryStorageEvictorTest, MultipleEvictionTest) {}

TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionTest) {}

TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionSkippedTest) {}

// Legacy test to verify eviction still works as expected when the
// kNewQuotaEvictionRoutine feature is not enabled.
TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionTest_Rollback) {}

// Legacy test to verify eviction still works as expected when the
// kNewQuotaEvictionRoutine feature is not enabled.
TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionSkippedTest_Rollback) {}

TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionWithAccessBucketTest) {}

TEST_F(QuotaTemporaryStorageEvictorTest, DiskSpaceNonEvictionTest) {}

TEST_F(QuotaTemporaryStorageEvictorTest, DiskSpaceEvictionTest) {}

TEST_F(QuotaTemporaryStorageEvictorTest, CallingStartAfterEvictionScheduled) {}

TEST_F(QuotaTemporaryStorageEvictorTest,
       CallingStartImmediatelyAfterEvictionScheduled) {}

TEST_F(QuotaTemporaryStorageEvictorTest, CallingStartDuringEvictionRoutine) {}

}  // namespace storage