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-11-29 18:36:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
abb0fce3d8cea70675a01317ea54c494fe400173
abb0fce3
1 parent
23f4aa57
fix bug for utest of message array, it does not free messages now.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
trunk/src/utest/srs_utest_protocol.cpp
trunk/src/utest/srs_utest_protocol.cpp
查看文件 @
abb0fce
...
...
@@ -541,18 +541,18 @@ VOID TEST(ProtocolMsgArrayTest, MessageArray)
arr
.
msgs
[
2
]
=
msg
.
copy
();
EXPECT_EQ
(
3
,
msg
.
count
());
}
EXPECT_EQ
(
0
,
msg
.
count
());
EXPECT_EQ
(
3
,
msg
.
count
());
if
(
true
)
{
SrsMessageArray
arr
(
3
);
arr
.
msgs
[
0
]
=
msg
.
copy
();
EXPECT_EQ
(
1
,
msg
.
count
());
EXPECT_EQ
(
4
,
msg
.
count
());
arr
.
msgs
[
2
]
=
msg
.
copy
();
EXPECT_EQ
(
2
,
msg
.
count
());
EXPECT_EQ
(
5
,
msg
.
count
());
}
EXPECT_EQ
(
0
,
msg
.
count
());
EXPECT_EQ
(
5
,
msg
.
count
());
}
/**
...
...
请
注册
或
登录
后发表评论