1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
srs/trunk/src/utest/srs_utest_service.hpp
2023-01-01 08:49:13 +08:00

34 lines
681 B
C++

//
// Copyright (c) 2013-2023 The SRS Authors
//
// SPDX-License-Identifier: MIT or MulanPSL-2.0
//
#ifndef SRS_UTEST_SERVICE_HPP
#define SRS_UTEST_SERVICE_HPP
/*
#include <srs_utest_service.hpp>
*/
#include <srs_utest.hpp>
#include <srs_app_st.hpp>
#include <srs_protocol_conn.hpp>
class MockSrsConnection : public ISrsConnection
{
public:
// Whether switch the coroutine context when free the object, for special case test.
bool do_switch;
public:
MockSrsConnection();
virtual ~MockSrsConnection();
// Interface ISrsConnection.
public:
virtual const SrsContextId& get_id();
virtual std::string desc();
virtual std::string remote_ip();
};
#endif