#include "components/download/public/task/task_manager_impl.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/test/test_simple_task_runner.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace download {
namespace {
class MockTaskScheduler : public TaskScheduler { … };
class MockTaskWaiter { … };
class TaskManagerImplTest : public testing::Test { … };
}
TEST_F(TaskManagerImplTest, ScheduleTask) { … }
TEST_F(TaskManagerImplTest, UnscheduleTask) { … }
TEST_F(TaskManagerImplTest, NotifyTaskFinished) { … }
TEST_F(TaskManagerImplTest, DifferentTasksCanBeRunIndependently) { … }
TEST_F(TaskManagerImplTest, ScheduleTaskWithDifferentParamsWhileRunningTask) { … }
TEST_F(TaskManagerImplTest, ScheduleTaskWithSameParamsWhileRunningTask) { … }
TEST_F(TaskManagerImplTest, StopTaskWillClearTheCallback) { … }
TEST_F(TaskManagerImplTest, StartTaskWithoutPendingParams) { … }
TEST_F(TaskManagerImplTest, StopTaskWithoutPendingParams) { … }
TEST_F(TaskManagerImplTest, StopTaskWillSchedulePendingParams) { … }
}