proxygen
CustomPipelineMakerTestClient Class Reference
Inheritance diagram for CustomPipelineMakerTestClient:
wangle::ClientBootstrap< DefaultPipeline > wangle::BaseClientBootstrap< DefaultPipeline > folly::DestructorCheck

Public Member Functions

 CustomPipelineMakerTestClient (const TestRoutingData &routingData, const std::shared_ptr< CustomPipelineFactory > &factory)
 
void makePipeline (std::shared_ptr< folly::AsyncTransportWrapper > socket) override
 
- Public Member Functions inherited from wangle::ClientBootstrap< DefaultPipeline >
 ClientBootstrap ()
 
ClientBootstrapgroup (std::shared_ptr< folly::IOThreadPoolExecutor > group)
 
ClientBootstrapbind (int port)
 
folly::Future< DefaultPipeline * > connect (const folly::SocketAddress &address, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) override
 
 ~ClientBootstrap () override=default
 
- Public Member Functions inherited from wangle::BaseClientBootstrap< DefaultPipeline >
 BaseClientBootstrap ()
 
virtual ~BaseClientBootstrap ()=default
 
BaseClientBootstrap< DefaultPipeline > * pipelineFactory (std::shared_ptr< PipelineFactory< DefaultPipeline >> factory) noexcept
 
DefaultPipelinegetPipeline ()
 
BaseClientBootstrapsslContext (folly::SSLContextPtr sslContext)
 
BaseClientBootstrapsslSession (SSL_SESSION *sslSession)
 
BaseClientBootstrapserverName (const std::string &sni)
 
BaseClientBootstrapsslSessionEstablishedCallback (SSLSessionEstablishedCallbackUniquePtr sslSessionEstablishedCallback)
 
BaseClientBootstrapdeferSecurityNegotiation (bool deferSecurityNegotiation)
 
void setPipeline (const typename DefaultPipeline::Ptr &pipeline)
 
- Public Member Functions inherited from folly::DestructorCheck
virtual ~DestructorCheck ()
 

Public Attributes

TestRoutingData routingData_
 
std::shared_ptr< CustomPipelineFactoryfactory_
 

Additional Inherited Members

- Public Types inherited from wangle::BaseClientBootstrap< DefaultPipeline >
using Ptr = std::unique_ptr< BaseClientBootstrap >
 
- Protected Attributes inherited from wangle::ClientBootstrap< DefaultPipeline >
int port_
 
std::shared_ptr< folly::IOThreadPoolExecutorgroup_
 
- Protected Attributes inherited from wangle::BaseClientBootstrap< DefaultPipeline >
std::shared_ptr< PipelineFactory< DefaultPipeline > > pipelineFactory_
 
DefaultPipeline::Ptr pipeline_
 
folly::SSLContextPtr sslContext_
 
SSL_SESSION * sslSession_
 
std::string sni_
 
bool deferSecurityNegotiation_
 
SSLSessionEstablishedCallbackUniquePtr sslSessionEstablishedCallback_
 

Detailed Description

Definition at line 94 of file ObservingClientPipelineTest.cpp.

Constructor & Destructor Documentation

CustomPipelineMakerTestClient::CustomPipelineMakerTestClient ( const TestRoutingData routingData,
const std::shared_ptr< CustomPipelineFactory > &  factory 
)
inlineexplicit

Definition at line 96 of file ObservingClientPipelineTest.cpp.

99  : routingData_(routingData),
100  factory_(factory) {
101  }
std::shared_ptr< CustomPipelineFactory > factory_

Member Function Documentation

void CustomPipelineMakerTestClient::makePipeline ( std::shared_ptr< folly::AsyncTransportWrapper socket)
inlineoverridevirtual

Reimplemented from wangle::BaseClientBootstrap< DefaultPipeline >.

Definition at line 103 of file ObservingClientPipelineTest.cpp.

104  {
105  setPipeline(factory_->newPipeline(
106  socket, routingData_, nullptr, nullptr));
107  }
NetworkSocket socket(int af, int type, int protocol)
Definition: NetOps.cpp:412
std::shared_ptr< CustomPipelineFactory > factory_
void setPipeline(const typename DefaultPipeline::Ptr &pipeline)

Member Data Documentation

std::shared_ptr<CustomPipelineFactory> CustomPipelineMakerTestClient::factory_

Definition at line 110 of file ObservingClientPipelineTest.cpp.

TestRoutingData CustomPipelineMakerTestClient::routingData_

Definition at line 109 of file ObservingClientPipelineTest.cpp.


The documentation for this class was generated from the following file: