| 231 | } |
| 232 | |
| 233 | bool canCommunicate(int serverPort) { |
| 234 | std::shared_ptr<TSSLSocketFactory> pClientSocketFactory = createClientSocketFactory(); |
| 235 | std::shared_ptr<TSSLSocket> socket = pClientSocketFactory->createSocket("localhost", serverPort); |
| 236 | socket->open(); |
| 237 | test::ParentServiceClient client(std::make_shared<protocol::TBinaryProtocol>( |
| 238 | std::make_shared<transport::TFramedTransport>(socket))); |
| 239 | client.addString("foo"); |
| 240 | std::vector<std::string> strings; |
| 241 | client.getStrings(strings); |
| 242 | return strings.size() == 1 && !(strings[0].compare("foo")); |
| 243 | } |
| 244 | |
| 245 | private: |
| 246 | std::shared_ptr<event_base> userEventBase_; |
nothing calls this directly
no test coverage detected