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

fix #126, srs_publiser add warnings. refine config utest.

This commit is contained in:
winlin 2014-07-26 14:43:37 +08:00
parent b17c736f3f
commit 7241fa8744
8 changed files with 84 additions and 8 deletions

View file

@ -30,12 +30,36 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_app_log.hpp>
// kernel module.
ISrsLog* _srs_log = new ISrsLog();
ISrsLog* _srs_log = new MockEmptyLog(SrsLogLevel::Disabled);
ISrsThreadContext* _srs_context = new ISrsThreadContext();
// app module.
SrsConfig* _srs_config = NULL;
SrsServer* _srs_server = NULL;
MockEmptyLog::MockEmptyLog(int level)
{
_level = level;
}
MockEmptyLog::~MockEmptyLog()
{
}
int MockEmptyLog::on_reload_log_tank()
{
return ERROR_SUCCESS;
}
int MockEmptyLog::on_reload_log_level()
{
return ERROR_SUCCESS;
}
int MockEmptyLog::on_reload_log_file()
{
return ERROR_SUCCESS;
}
void __srs_bytes_print(char* pa, int size)
{
for(int i = 0; i < size; i++) {