#include "content/browser/cache_storage/cache_storage_scheduler.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace cache_storage_scheduler_unittest {
class TestTask { … };
class TestScheduler : public CacheStorageScheduler { … };
class CacheStorageSchedulerTest : public testing::Test { … };
TEST_F(CacheStorageSchedulerTest, ScheduleOne) { … }
TEST_F(CacheStorageSchedulerTest, ScheduledOperations) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleTwoExclusive) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleTwoShared) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleOneExclusiveOneShared) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleOneSharedOneExclusive) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleTwoSharedOneExclusive) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleOneExclusiveTwoShared) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleOneSharedOneExclusiveOneShared) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleTwoSharedNotParallel) { … }
TEST_F(CacheStorageSchedulerTest, ScheduleByPriorityTwoNormalOneHigh) { … }
}
}