chromium/pdf/loader/document_loader_impl_unittest.cc

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

#include "pdf/loader/document_loader_impl.h"

#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/check.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "pdf/loader/url_loader_wrapper.h"
#include "pdf/pdf_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/range/range.h"

_;
Mock;
NiceMock;
Return;
Sequence;

namespace chrome_pdf {

namespace {

constexpr uint32_t kDefaultRequestSize =;

class TestURLLoader : public URLLoaderWrapper {};

class TestClient : public DocumentLoader::Client {};

class MockClient : public TestClient {};

}  // namespace

class DocumentLoaderImplTest : public testing::Test {};

TEST_F(DocumentLoaderImplTest, PartialLoadingFeatureDefault) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingFeatureDisabled) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingEnabled) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingDisabledOnSmallFiles) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingDisabledIfContentEncoded) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingDisabledNoAcceptRangeBytes) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingReallyDisabledRequestFromBegin) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingReallyDisabledRequestFromMiddle) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingSimple) {}

TEST_F(DocumentLoaderImplTest, PartialLoadingBackOrder) {}

TEST_F(DocumentLoaderImplTest, CompleteWithoutPartial) {}

TEST_F(DocumentLoaderImplTest, ErrorDownloadFullDocument) {}

TEST_F(DocumentLoaderImplTest, CompleteNoContentLength) {}

TEST_F(DocumentLoaderImplTest, CompleteWithPartial) {}

TEST_F(DocumentLoaderImplTest, PartialRequestLastChunk) {}

TEST_F(DocumentLoaderImplTest, DocumentSize) {}

TEST_F(DocumentLoaderImplTest, DocumentSizeNoContentLength) {}

TEST_F(DocumentLoaderImplTest, ClearPendingRequests) {}

TEST_F(DocumentLoaderImplTest, GetBlock) {}

TEST_F(DocumentLoaderImplTest, IsDataAvailable) {}

TEST_F(DocumentLoaderImplTest, RequestData) {}

TEST_F(DocumentLoaderImplTest, DoNotLoadAvailablePartialData) {}

TEST_F(DocumentLoaderImplTest, DoNotLoadDataAfterComplete) {}

TEST_F(DocumentLoaderImplTest, DoNotLoadPartialDataAboveDocumentSize) {}

TEST_F(DocumentLoaderImplTest, MergePendingRequests) {}

TEST_F(DocumentLoaderImplTest, PartialStopOnStatusCodeError) {}

TEST_F(DocumentLoaderImplTest,
       PartialAsFullDocumentLoadingRangeRequestNoRangeField) {}

TEST_F(DocumentLoaderImplTest, PartialMultiPart) {}

TEST_F(DocumentLoaderImplTest, PartialMultiPartRangeError) {}

TEST_F(DocumentLoaderImplTest, PartialConnectionErrorOnOpen) {}

TEST_F(DocumentLoaderImplTest, PartialConnectionErrorOnRead) {}

TEST_F(DocumentLoaderImplTest, ClientCompleteCallbacks) {}

TEST_F(DocumentLoaderImplTest, ClientCompleteCallbacksNoContentLength) {}

TEST_F(DocumentLoaderImplTest, ClientCancelCallback) {}

TEST_F(DocumentLoaderImplTest, NewDataAvailable) {}

TEST_F(DocumentLoaderImplTest, ClientPendingRequestCompleteFullLoader) {}

TEST_F(DocumentLoaderImplTest, ClientPendingRequestCompletePartialLoader) {}

TEST_F(DocumentLoaderImplTest,
       ClientPendingRequestCompletePartialAndFullLoader) {}

TEST_F(DocumentLoaderImplTest, IgnoreDataMoreThanExpectedWithPartial) {}

TEST_F(DocumentLoaderImplTest, IgnoreDataMoreThanExpectedWithPartialAtFileEnd) {}

}  // namespace chrome_pdf