MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / TEST

Function TEST

framework/tests/dataSource/dataSourceUnitTest.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29TEST(protocol, http)
30{
31 string url = "http://player.alicdn.com/video/aliyunmedia.mp4";
32 unique_ptr<IDataSource> source = unique_ptr<IDataSource>(dataSourcePrototype::create(url));
33 ASSERT_NE(source, nullptr);
34 int ret = source->Open(0);
35 ASSERT_GE(ret, 0);
36 int64_t size = source->Seek(0, SEEK_SIZE);
37 ASSERT_EQ(size, 146057805);
38}
39
40
41TEST(protocol, https)

Callers 1

Calls 11

setPropertyFunction · 0.85
addResolveMethod · 0.80
removeResolveMethod · 0.80
startMethod · 0.65
stopMethod · 0.65
OpenMethod · 0.45
SeekMethod · 0.45
ReadMethod · 0.45
GetOptionMethod · 0.45
getStringMethod · 0.45
setPostMethod · 0.45

Tested by

no test coverage detected