mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Migrate is_never_timeout to utility.
This commit is contained in:
parent
1b37b90b8f
commit
ccba55cdd8
8 changed files with 8 additions and 42 deletions
|
@ -39,6 +39,9 @@ VOID TEST(ServiceTimeTest, TimeUnit)
|
|||
EXPECT_EQ(1000*1000, SRS_UTIME_SECONDS);
|
||||
EXPECT_EQ(60*1000*1000, SRS_UTIME_MINUTES);
|
||||
EXPECT_EQ(3600*1000*1000LL, SRS_UTIME_HOURS);
|
||||
|
||||
EXPECT_TRUE(srs_is_never_timeout(SRS_UTIME_NO_TIMEOUT));
|
||||
EXPECT_FALSE(srs_is_never_timeout(0));
|
||||
}
|
||||
|
||||
#define MOCK_LISTEN_HOST "127.0.0.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue