chromium/components/download/public/task/task_manager_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {};

}  // namespace

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) {}

// Verifies that OnStartScheduledTask() can be called without preceding
// ScheduleTask() calls.
TEST_F(TaskManagerImplTest, StartTaskWithoutPendingParams) {}

// Verifies that OnStopScheduledTask() can be called without preceding
// ScheduleTask() calls.
TEST_F(TaskManagerImplTest, StopTaskWithoutPendingParams) {}

TEST_F(TaskManagerImplTest, StopTaskWillSchedulePendingParams) {}

}  // namespace download