#include "components/download/internal/background_service/scheduler/scheduler_impl.h"
#include <stdint.h>
#include <memory>
#include "base/strings/string_number_conversions.h"
#include "components/download/internal/background_service/config.h"
#include "components/download/internal/background_service/entry.h"
#include "components/download/internal/background_service/scheduler/device_status.h"
#include "components/download/public/task/task_scheduler.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
InSequence;
namespace download {
namespace {
class MockTaskScheduler : public TaskScheduler { … };
class DownloadSchedulerImplTest : public testing::Test { … };
TEST_F(DownloadSchedulerImplTest, BasicPolling) { … }
TEST_F(DownloadSchedulerImplTest, BasicLoadBalancing) { … }
TEST_F(DownloadSchedulerImplTest, SchedulingParams) { … }
TEST_F(DownloadSchedulerImplTest, Priority) { … }
TEST_F(DownloadSchedulerImplTest, UIPrioritySubjectToDeviceStatus) { … }
TEST_F(DownloadSchedulerImplTest, UIPriorityLoadBalancing) { … }
TEST_F(DownloadSchedulerImplTest, PickOlderDownloadIfSameParameters) { … }
TEST_F(DownloadSchedulerImplTest, MultipleUIPriorityEntries) { … }
TEST_F(DownloadSchedulerImplTest, Reschedule) { … }
}
}