mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #194, refine code, remove the old duplicated code.
This commit is contained in:
parent
1f5c82ecc4
commit
8845bb7caf
12 changed files with 42 additions and 119 deletions
|
@ -529,7 +529,7 @@ VOID TEST(ProtocolMsgArrayTest, MessageArray)
|
|||
EXPECT_EQ(0, msg.count());
|
||||
|
||||
if (true) {
|
||||
SrsSharedPtrMessageArray arr(3);
|
||||
SrsMessageArray arr(3);
|
||||
|
||||
arr.msgs[0] = msg.copy();
|
||||
EXPECT_EQ(1, msg.count());
|
||||
|
@ -543,7 +543,7 @@ VOID TEST(ProtocolMsgArrayTest, MessageArray)
|
|||
EXPECT_EQ(0, msg.count());
|
||||
|
||||
if (true) {
|
||||
SrsSharedPtrMessageArray arr(3);
|
||||
SrsMessageArray arr(3);
|
||||
|
||||
arr.msgs[0] = msg.copy();
|
||||
EXPECT_EQ(1, msg.count());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue