| 1495 | #endif |
| 1496 | |
| 1497 | int HandleSocketSuccessWrite(bthread_id_t id, void* data, int error_code, |
| 1498 | const std::string& error_text) { |
| 1499 | auto success_count = static_cast<size_t*>(data); |
| 1500 | EXPECT_NE(nullptr, success_count); |
| 1501 | EXPECT_EQ(0, error_code); |
| 1502 | ++(*success_count); |
| 1503 | CHECK_EQ(0, bthread_id_unlock_and_destroy(id)); |
| 1504 | return 0; |
| 1505 | } |
| 1506 | |
| 1507 | TEST_F(SocketTest, notify_on_success) { |
| 1508 | const size_t REP = 10000; |
nothing calls this directly
no test coverage detected