Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
ba00bff2
提交
ba00bff2
authored
1月 01, 2018
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cosmetic change in test "helpers.hpp"
上级
f07f1d1a
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
8 行删除
+6
-8
TestRtpPacket.cpp
worker/test/RTC/TestRtpPacket.cpp
+3
-3
TestRtpStreamRecv.cpp
worker/test/RTC/TestRtpStreamRecv.cpp
+0
-1
helpers.hpp
worker/test/include/helpers.hpp
+3
-4
没有找到文件。
worker/test/RTC/TestRtpPacket.cpp
浏览文件 @
ba00bff2
...
@@ -19,7 +19,7 @@ SCENARIO("parse RTP packets", "[parser][rtp]")
...
@@ -19,7 +19,7 @@ SCENARIO("parse RTP packets", "[parser][rtp]")
uint8_t
extenLen
;
uint8_t
extenLen
;
uint8_t
*
extenValue
;
uint8_t
*
extenValue
;
if
(
!
Helpers
::
R
eadBinaryFile
(
"data/packet1.raw"
,
buffer
,
&
len
))
if
(
!
helpers
::
r
eadBinaryFile
(
"data/packet1.raw"
,
buffer
,
&
len
))
FAIL
(
"cannot open file"
);
FAIL
(
"cannot open file"
);
RtpPacket
*
packet
=
RtpPacket
::
Parse
(
buffer
,
len
);
RtpPacket
*
packet
=
RtpPacket
::
Parse
(
buffer
,
len
);
...
@@ -64,7 +64,7 @@ SCENARIO("parse RTP packets", "[parser][rtp]")
...
@@ -64,7 +64,7 @@ SCENARIO("parse RTP packets", "[parser][rtp]")
{
{
size_t
len
;
size_t
len
;
if
(
!
Helpers
::
R
eadBinaryFile
(
"data/packet2.raw"
,
buffer
,
&
len
))
if
(
!
helpers
::
r
eadBinaryFile
(
"data/packet2.raw"
,
buffer
,
&
len
))
FAIL
(
"cannot open file"
);
FAIL
(
"cannot open file"
);
RtpPacket
*
packet
=
RtpPacket
::
Parse
(
buffer
,
len
);
RtpPacket
*
packet
=
RtpPacket
::
Parse
(
buffer
,
len
);
...
@@ -95,7 +95,7 @@ SCENARIO("parse RTP packets", "[parser][rtp]")
...
@@ -95,7 +95,7 @@ SCENARIO("parse RTP packets", "[parser][rtp]")
uint8_t
volume
;
uint8_t
volume
;
uint32_t
absSendTime
;
uint32_t
absSendTime
;
if
(
!
Helpers
::
R
eadBinaryFile
(
"data/packet3.raw"
,
buffer
,
&
len
))
if
(
!
helpers
::
r
eadBinaryFile
(
"data/packet3.raw"
,
buffer
,
&
len
))
FAIL
(
"cannot open file"
);
FAIL
(
"cannot open file"
);
RtpPacket
*
packet
=
RtpPacket
::
Parse
(
buffer
,
len
);
RtpPacket
*
packet
=
RtpPacket
::
Parse
(
buffer
,
len
);
...
...
worker/test/RTC/TestRtpStreamRecv.cpp
浏览文件 @
ba00bff2
#include "common.hpp"
#include "common.hpp"
#include "catch.hpp"
#include "catch.hpp"
#include "helpers.hpp"
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/RtpStreamRecv.hpp"
#include "RTC/RtpStreamRecv.hpp"
...
...
worker/test/include/helpers.hpp
浏览文件 @
ba00bff2
...
@@ -5,10 +5,9 @@
...
@@ -5,10 +5,9 @@
#include <string>
#include <string>
#include <fstream>
#include <fstream>
class
H
elpers
namespace
h
elpers
{
{
public
:
inline
bool
readBinaryFile
(
const
char
*
file
,
uint8_t
*
buffer
,
size_t
*
len
)
static
bool
ReadBinaryFile
(
const
char
*
file
,
uint8_t
*
buffer
,
size_t
*
len
)
{
{
std
::
string
filePath
=
"test/"
+
std
::
string
(
file
);
std
::
string
filePath
=
"test/"
+
std
::
string
(
file
);
...
@@ -23,6 +22,6 @@ public:
...
@@ -23,6 +22,6 @@ public:
return
true
;
return
true
;
}
}
}
;
}
#endif
#endif
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论