Lines Matching full:std

60 static std::unique_ptr<ThriftTestClient> setup_client()  in setup_client()
62 std::shared_ptr<TTransport> transport; in setup_client()
63 std::shared_ptr<TProtocol> protocol; in setup_client()
64 std::shared_ptr<TTransport> trans(new TFDTransport(context.fds[ctx::CLIENT])); in setup_client()
68 std::shared_ptr<TSSLSocketFactory> socketFactory = in setup_client()
69 std::make_shared<TSSLSocketFactory>(); in setup_client()
73 trans = std::make_shared<TFDTransport>(context.fds[ctx::CLIENT]); in setup_client()
76 transport = std::make_shared<TBufferedTransport>(trans); in setup_client()
79 protocol = std::make_shared<TCompactProtocol>(transport); in setup_client()
81 protocol = std::make_shared<TBinaryProtocol>(transport); in setup_client()
84 return std::unique_ptr<ThriftTestClient>(new ThriftTestClient(protocol)); in setup_client()
87 static std::unique_ptr<TServer> setup_server() in setup_server()
89 std::shared_ptr<TestHandler> handler(new TestHandler()); in setup_server()
90 std::shared_ptr<TProcessor> processor(new ThriftTestProcessor(handler)); in setup_server()
91 std::shared_ptr<TServerTransport> serverTransport; in setup_server()
92 std::shared_ptr<TProtocolFactory> protocolFactory; in setup_server()
93 std::shared_ptr<TTransportFactory> transportFactory; in setup_server()
97 std::shared_ptr<TSSLSocketFactory> socketFactory(new TSSLSocketFactory()); in setup_server()
100 std::make_shared<TSSLServerSocket>("0.0.0.0", port, socketFactory); in setup_server()
102 serverTransport = std::make_shared<TFDServer>(context.fds[ctx::SERVER]); in setup_server()
105 transportFactory = std::make_shared<TBufferedTransportFactory>(); in setup_server()
108 protocolFactory = std::make_shared<TCompactProtocolFactory>(); in setup_server()
110 protocolFactory = std::make_shared<TBinaryProtocolFactory>(); in setup_server()
113 return std::unique_ptr<TServer>( in setup_server()