blob: 147293dcf714ad1f32593932d1028cb037705f1f [file] [log] [blame]
magjeddd407022016-12-01 00:27:27 -08001/*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "media/engine/internaldecoderfactory.h"
magjeddd407022016-12-01 00:27:27 -080012
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010013#include "api/video_codecs/sdp_video_format.h"
14#include "api/video_codecs/video_decoder.h"
15#include "media/base/mediaconstants.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020016#include "test/gtest.h"
magjeddd407022016-12-01 00:27:27 -080017
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010018namespace webrtc {
19
magjeddd407022016-12-01 00:27:27 -080020TEST(InternalDecoderFactory, TestVP8) {
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010021 InternalDecoderFactory factory;
22 std::unique_ptr<VideoDecoder> decoder =
23 factory.CreateVideoDecoder(SdpVideoFormat(cricket::kVp8CodecName));
magjeddd407022016-12-01 00:27:27 -080024 EXPECT_TRUE(decoder);
magjeddd407022016-12-01 00:27:27 -080025}
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010026
27} // namespace webrtc