| 238 | } |
| 239 | |
| 240 | void run() { |
| 241 | container_.run(); |
| 242 | ASSERT_EQUAL(1, start_count); |
| 243 | ASSERT_EQUAL(1, open_count); |
| 244 | // Could be >=0, unpredictable number reconnects while listener comes up. |
| 245 | ASSERT(0 <= transport_error_count); |
| 246 | ASSERT(0 <= link_open_count); |
| 247 | ASSERT_EQUAL(1, transport_close_count); |
| 248 | ASSERT_EQUAL(1, connection_error_count); |
| 249 | } |
| 250 | |
| 251 | private: |
| 252 | std::unique_ptr<server_connection_handler> s1; |