#include "components/pdf/browser/pdf_navigation_throttle.h"
#include <memory>
#include <utility>
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "components/pdf/browser/fake_pdf_stream_delegate.h"
#include "components/pdf/browser/pdf_stream_delegate.h"
#include "content/public/browser/navigation_throttle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/mock_web_contents_observer.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
namespace pdf {
namespace {
_;
NiceMock;
Return;
class PdfNavigationThrottleTest : public content::RenderViewHostTestHarness { … };
}
TEST_F(PdfNavigationThrottleTest, WillStartRequest) { … }
TEST_F(PdfNavigationThrottleTest, WillStartRequestForMainFrame) { … }
TEST_F(PdfNavigationThrottleTest, WillStartRequestDeleteContents) { … }
TEST_F(PdfNavigationThrottleTest, WillStartRequestNoStreamInfo) { … }
TEST_F(PdfNavigationThrottleTest,
WillStartRequestShouldAllowPdfFrameNavigationFalse) { … }
TEST_F(PdfNavigationThrottleTest, WillStartRequestOtherUrl) { … }
}