#include "components/pdf/browser/plugin_response_writer.h"
#include <stddef.h>
#include <memory>
#include <string>
#include <utility>
#include "base/containers/span.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/data_pipe_drainer.h"
#include "net/base/net_errors.h"
#include "net/http/http_response_headers.h"
#include "services/network/public/cpp/url_loader_completion_status.h"
#include "services/network/public/mojom/url_response_head.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;
HasSubstr;
NiceMock;
Not;
class BodyDrainer { … };
class PluginResponseWriterTest : public testing::Test { … };
}
TEST_F(PluginResponseWriterTest, Start) { … }
TEST_F(PluginResponseWriterTest, StartWithUnescapedUrls) { … }
TEST_F(PluginResponseWriterTest, StartForPrintPreview) { … }
TEST_F(PluginResponseWriterTest, StartWithoutInjectedScript) { … }
TEST_F(PluginResponseWriterTest, StartWithBackgroundColor) { … }
TEST_F(PluginResponseWriterTest, StartWithNonFullFrame) { … }
TEST_F(PluginResponseWriterTest, StartWithJavaScriptDisabled) { … }
}