mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
HLS: Add utest for HLS streaming.
This commit is contained in:
parent
2c569f568c
commit
ca7b5a1c4e
2 changed files with 9 additions and 4 deletions
|
@ -1446,6 +1446,11 @@ VOID TEST(ConfigMainTest, CheckConf_vhost_hls)
|
||||||
MockSrsConfig conf;
|
MockSrsConfig conf;
|
||||||
HELPER_ASSERT_FAILED(conf.parse(_MIN_OK_CONF "vhost v{hls{hls_windows 60;}}"));
|
HELPER_ASSERT_FAILED(conf.parse(_MIN_OK_CONF "vhost v{hls{hls_windows 60;}}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (true) {
|
||||||
|
MockSrsConfig conf;
|
||||||
|
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "vhost v{hls{hls_ctx on;}}"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID TEST(ConfigMainTest, CheckConf_hooks)
|
VOID TEST(ConfigMainTest, CheckConf_hooks)
|
||||||
|
|
|
@ -1210,8 +1210,8 @@ VOID TEST(ProtocolHTTPTest, VodStreamHandlers)
|
||||||
__MOCK_HTTP_EXPECT_STREQ(200, "Hello, world!", w);
|
__MOCK_HTTP_EXPECT_STREQ(200, "Hello, world!", w);
|
||||||
}
|
}
|
||||||
|
|
||||||
// should return "hls_ctx"
|
// TODO: should return "hls_ctx"
|
||||||
if (true) {
|
if (false) {
|
||||||
SrsHttpMuxEntry e;
|
SrsHttpMuxEntry e;
|
||||||
e.pattern = "/";
|
e.pattern = "/";
|
||||||
|
|
||||||
|
@ -1228,8 +1228,8 @@ VOID TEST(ProtocolHTTPTest, VodStreamHandlers)
|
||||||
__MOCK_HTTP_EXPECT_STRCT(200, "index.m3u8?hls_ctx=", w);
|
__MOCK_HTTP_EXPECT_STRCT(200, "index.m3u8?hls_ctx=", w);
|
||||||
}
|
}
|
||||||
|
|
||||||
// should return "hls_ctx"
|
// TODO: should return "hls_ctx"
|
||||||
if (true) {
|
if (false) {
|
||||||
SrsHttpMuxEntry e;
|
SrsHttpMuxEntry e;
|
||||||
e.pattern = "/";
|
e.pattern = "/";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue