1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine set_send_timeout in time unit

This commit is contained in:
winlin 2019-04-17 08:18:37 +08:00
parent a1398892d0
commit f4bee37e76
14 changed files with 34 additions and 34 deletions

View file

@ -72,7 +72,7 @@ int64_t MockEmptyIO::get_recv_bytes()
return -1;
}
void MockEmptyIO::set_send_timeout(int64_t /*tm*/)
void MockEmptyIO::set_send_timeout(srs_utime_t /*tm*/)
{
}
@ -157,7 +157,7 @@ int64_t MockBufferIO::get_recv_bytes()
return rbytes;
}
void MockBufferIO::set_send_timeout(int64_t tm)
void MockBufferIO::set_send_timeout(srs_utime_t tm)
{
stm = tm;
}
@ -696,8 +696,8 @@ VOID TEST(ProtocolStackTest, ProtocolTimeout)
proto.set_recv_timeout(10);
EXPECT_TRUE(10 == proto.get_recv_timeout());
proto.set_send_timeout(10);
EXPECT_TRUE(10 == proto.get_send_timeout());
proto.set_send_timeout(10 * SRS_UTIME_MILLISECONDS);
EXPECT_TRUE(10 * SRS_UTIME_MILLISECONDS == proto.get_send_timeout());
}
/**