Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-06-07 20:40:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e6c03c6d6d1f756e47be4006d6de9fe4b5cec1f0
e6c03c6d
1 parent
5a06909d
complete the amf0 strict array utest
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
trunk/src/utest/srs_utest_amf0.cpp
trunk/src/utest/srs_utest_amf0.cpp
查看文件 @
e6c03c6
...
...
@@ -874,6 +874,11 @@ VOID TEST(AMF0Test, ApiAnyAssert)
SrsAutoFree
(
SrsAmf0Any
,
o
);
EXPECT_TRUE
(
o
->
is_ecma_array
());
}
if
(
true
)
{
o
=
SrsAmf0Any
::
strict_array
();
SrsAutoFree
(
SrsAmf0Any
,
o
);
EXPECT_TRUE
(
o
->
is_strict_array
());
}
// empty object
if
(
true
)
{
...
...
@@ -892,6 +897,15 @@ VOID TEST(AMF0Test, ApiAnyAssert)
EXPECT_EQ
(
ERROR_SUCCESS
,
o
->
write
(
&
s
));
EXPECT_EQ
(
1
+
4
+
3
,
s
.
pos
());
}
// strict array
if
(
true
)
{
o
=
SrsAmf0Any
::
strict_array
();
SrsAutoFree
(
SrsAmf0Any
,
o
);
s
.
reset
();
EXPECT_EQ
(
ERROR_SUCCESS
,
o
->
write
(
&
s
));
EXPECT_EQ
(
1
+
4
,
s
.
pos
());
}
}
VOID
TEST
(
AMF0Test
,
ApiObjectProps
)
...
...
请
注册
或
登录
后发表评论