blob: 5e2bfbf9ec3fe1f626733f526d3d3fa5aac9b837 [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
Steve Anton10542f22019-01-11 09:11:00 -080011#include "media/engine/internal_decoder_factory.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"
Steve Anton10542f22019-01-11 09:11:00 -080015#include "media/base/media_constants.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