#include "components/download/internal/common/parallel_download_job.h"
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "components/download/internal/common/parallel_download_utils.h"
#include "components/download/public/common/download_create_info.h"
#include "components/download/public/common/download_destination_observer.h"
#include "components/download/public/common/download_file_impl.h"
#include "components/download/public/common/download_task_runner.h"
#include "components/download/public/common/mock_download_item.h"
#include "components/download/public/common/mock_input_stream.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
NiceMock;
Return;
ReturnRef;
StrictMock;
namespace download {
namespace {
class MockDownloadDestinationObserver : public DownloadDestinationObserver { … };
}
class ParallelDownloadJobForTest : public ParallelDownloadJob { … };
class ParallelDownloadJobTest : public testing::Test { … };
TEST_F(ParallelDownloadJobTest, CreateNewDownloadRequestsWithoutSlices) { … }
TEST_F(ParallelDownloadJobTest, CreateNewDownloadRequestsWithSlices) { … }
TEST_F(ParallelDownloadJobTest, CreateResumptionRequestsFirstSliceFilled) { … }
TEST_F(ParallelDownloadJobTest, CreateResumptionRequestsTwoSlicesToFill) { … }
TEST_F(ParallelDownloadJobTest, LastReceivedSliceFinished) { … }
TEST_F(ParallelDownloadJobTest, EarlyCancelBeforeBuildRequests) { … }
TEST_F(ParallelDownloadJobTest, RemainingContentWillFinishSoon) { … }
TEST_F(ParallelDownloadJobTest, ParallelRequestNotCreatedUntilFileInitialized) { … }
TEST_F(ParallelDownloadJobTest, InterruptOnStartup) { … }
TEST_F(ParallelDownloadJobTest,
AllSlicesFinishedBeforeForkingParallelRequests) { … }
}