#include "components/pdf/browser/pdf_url_loader_request_interceptor.h"
#include <memory>
#include <utility>
#include "base/run_loop.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/mock_callback.h"
#include "components/pdf/browser/fake_pdf_stream_delegate.h"
#include "components/pdf/browser/pdf_stream_delegate.h"
#include "content/public/browser/url_loader_request_interceptor.h"
#include "content/public/test/test_renderer_host.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/mojom/fetch_api.mojom-shared.h"
#include "services/network/public/mojom/url_loader.mojom.h"
#include "services/network/test/mock_url_loader_client.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace pdf {
namespace {
MockURLLoaderClient;
NiceMock;
class PdfURLLoaderRequestInterceptorTest
: public content::RenderViewHostTestHarness { … };
void RunRequestHandler(
content::URLLoaderRequestInterceptor::RequestHandler request_handler) { … }
}
TEST_F(PdfURLLoaderRequestInterceptorTest, MaybeCreateInterceptor) { … }
TEST_F(PdfURLLoaderRequestInterceptorTest, MaybeCreateLoader) { … }
TEST_F(PdfURLLoaderRequestInterceptorTest, MaybeCreateLoaderNotNavigate) { … }
TEST_F(PdfURLLoaderRequestInterceptorTest, MaybeCreateLoaderDeleteContents) { … }
TEST_F(PdfURLLoaderRequestInterceptorTest, MaybeCreateLoaderNoStreamInfo) { … }
TEST_F(PdfURLLoaderRequestInterceptorTest, MaybeCreateLoaderOtherUrl) { … }
}