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

@ -31,6 +31,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "gtest/gtest.h"
#include <srs_app_log.hpp>
// we add an empty macro for upp to show the smart tips.
#define VOID
@ -52,4 +54,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// print the bytes.
void __srs_bytes_print(char* pa, int size);
class MockEmptyLog : public SrsFastLog
{
private:
int _level;
public:
MockEmptyLog(int level);
virtual ~MockEmptyLog();
public:
virtual int on_reload_log_tank();
virtual int on_reload_log_level();
virtual int on_reload_log_file();
};
#endif