зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1254858: P6. Add VP9 decoding gtest. r=kentuckyfriedtakahe
MozReview-Commit-ID: 1Xo9B1TGyuc --HG-- extra : rebase_source : d0d46f730984e2a9cf3e190f3b6e5185b301ed56
This commit is contained in:
Родитель
0a4ddd9b8d
Коммит
13e0855c84
|
@ -8,6 +8,7 @@
|
|||
#include "MockMediaResource.h"
|
||||
#include "DecoderTraits.h"
|
||||
#include "MP4Demuxer.h"
|
||||
#include "WebMDemuxer.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
|
@ -53,3 +54,18 @@ TEST(MediaDataDecoder, H264)
|
|||
EXPECT_GT(runner.Run(), 0u);
|
||||
}
|
||||
}
|
||||
|
||||
TEST(MediaDataDecoder, VP9)
|
||||
{
|
||||
if (!DecoderTraits::IsWebMTypeAndEnabled(NS_LITERAL_CSTRING("video/webm"))) {
|
||||
EXPECT_TRUE(true);
|
||||
} else {
|
||||
RefPtr<MediaResource> resource =
|
||||
new MockMediaResource("vp9cake.webm", NS_LITERAL_CSTRING("video/webm"));
|
||||
nsresult rv = resource->Open(nullptr);
|
||||
EXPECT_TRUE(NS_SUCCEEDED(rv));
|
||||
|
||||
BenchmarkRunner runner(new Benchmark(new WebMDemuxer(resource)));
|
||||
EXPECT_GT(runner.Run(), 0u);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ if CONFIG['MOZ_RUST']:
|
|||
TEST_HARNESS_FILES.gtest += [
|
||||
'../test/gizmo-frag.mp4',
|
||||
'../test/gizmo.mp4',
|
||||
'../test/vp9cake.webm',
|
||||
'dash_dashinit.mp4',
|
||||
'id3v2header.mp3',
|
||||
'mediasource_test.mp4',
|
||||
|
|
Загрузка…
Ссылка в новой задаче