#include "components/download/internal/common/parallel_download_utils.h"
#include <map>
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "components/download/public/common/download_features.h"
#include "components/download/public/common/download_file_impl.h"
#include "components/download/public/common/download_save_info.h"
#include "components/download/public/common/mock_input_stream.h"
#include "components/download/public/common/parallel_download_configs.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Return;
StrictMock;
namespace download {
namespace {
const int kErrorStreamOffset = …;
}
class ParallelDownloadUtilsTest : public testing::Test { … };
class ParallelDownloadUtilsRecoverErrorTest
: public ::testing::TestWithParam<int64_t> { … };
TEST_F(ParallelDownloadUtilsTest, FindSlicesToDownload) { … }
TEST_F(ParallelDownloadUtilsTest, AddOrMergeReceivedSliceIntoSortedArray) { … }
TEST_P(ParallelDownloadUtilsRecoverErrorTest,
RecoverErrorForHalfOpenErrorStream) { … }
TEST_P(ParallelDownloadUtilsRecoverErrorTest,
RecoverErrorForLengthCappedErrorStream) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_F(ParallelDownloadUtilsTest, FindSlicesForRemainingContentMinSliceSize) { … }
TEST_F(ParallelDownloadUtilsTest, GetMaxContiguousDataBlockSizeFromBeginning) { … }
TEST_F(ParallelDownloadUtilsTest, FinchConfigEnabled) { … }
TEST_F(ParallelDownloadUtilsTest, FinchConfigDisabled) { … }
TEST_F(ParallelDownloadUtilsTest, FinchConfigDisabledWithParameter) { … }
}