MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / TCPSocketServerLocalhostTest

Class TCPSocketServerLocalhostTest

tests/integration/WireServerTest.cpp:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138class TCPSocketServerLocalhostTest : public SocketServerTest {
139protected:
140 std::unique_ptr<TCPSocketServer> server;
141
142 SocketServer* createListeningServer() override {
143 server.reset(new TCPSocketServer(&protocolHandler));
144 server->listen(asio::ip::tcp::endpoint(asio::ip::make_address("127.0.0.1"), 0));
145 return server.get();
146 }
147
148 void destroyListeningServer() override {
149 server.reset();
150 }
151};
152
153TEST_F(TCPSocketServerLocalhostTest, listensOnLocalhost) {
154 // given

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected