#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 { … };
}
class QuotaTemporaryStorageEvictorTest : public testing::Test { … };
TEST_F(QuotaTemporaryStorageEvictorTest, SimpleEvictionTest) { … }
TEST_F(QuotaTemporaryStorageEvictorTest, MultipleEvictionTest) { … }
TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionTest) { … }
TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionSkippedTest) { … }
TEST_F(QuotaTemporaryStorageEvictorTest, RepeatedEvictionTest_Rollback) { … }
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) { … }
}