mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Add utest for connection manager
This commit is contained in:
parent
72122c746a
commit
86a80396de
3 changed files with 42 additions and 10 deletions
|
@ -42,17 +42,18 @@ using namespace std;
|
|||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
|
||||
class MockSrsConnection : public ISrsConnection
|
||||
MockSrsConnection::MockSrsConnection()
|
||||
{
|
||||
public:
|
||||
MockSrsConnection() {
|
||||
}
|
||||
virtual ~MockSrsConnection() {
|
||||
}
|
||||
virtual std::string remote_ip() {
|
||||
return "127.0.0.1";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
MockSrsConnection::~MockSrsConnection()
|
||||
{
|
||||
}
|
||||
|
||||
std::string MockSrsConnection::remote_ip()
|
||||
{
|
||||
return "127.0.0.1";
|
||||
}
|
||||
|
||||
VOID TEST(ServiceTimeTest, TimeUnit)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue