2017-10-30 23:10:12 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef API_TEST_MOCK_VIDEO_DECODER_FACTORY_H_
|
|
|
|
|
#define API_TEST_MOCK_VIDEO_DECODER_FACTORY_H_
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2024-01-22 13:17:05 +01:00
|
|
|
#include "api/environment/environment.h"
|
2017-10-30 23:10:12 -07:00
|
|
|
#include "api/video_codecs/sdp_video_format.h"
|
2022-10-07 21:47:49 +00:00
|
|
|
#include "api/video_codecs/video_decoder.h"
|
2017-10-30 23:10:12 -07:00
|
|
|
#include "api/video_codecs/video_decoder_factory.h"
|
|
|
|
|
#include "test/gmock.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2024-01-22 13:17:05 +01:00
|
|
|
class MockVideoDecoderFactory : public VideoDecoderFactory {
|
2017-10-30 23:10:12 -07:00
|
|
|
public:
|
2020-05-07 11:52:45 +02:00
|
|
|
~MockVideoDecoderFactory() override { Die(); }
|
|
|
|
|
|
2024-01-22 13:17:05 +01:00
|
|
|
MOCK_METHOD(std::vector<SdpVideoFormat>,
|
2020-05-07 11:52:45 +02:00
|
|
|
GetSupportedFormats,
|
|
|
|
|
(),
|
2020-05-14 20:42:41 +02:00
|
|
|
(const, override));
|
2024-01-22 13:17:05 +01:00
|
|
|
MOCK_METHOD(std::unique_ptr<VideoDecoder>,
|
|
|
|
|
Create,
|
|
|
|
|
(const Environment&, const SdpVideoFormat&),
|
|
|
|
|
(override));
|
2020-05-14 20:42:41 +02:00
|
|
|
MOCK_METHOD(void, Die, ());
|
2017-10-30 23:10:12 -07:00
|
|
|
};
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
#endif // API_TEST_MOCK_VIDEO_DECODER_FACTORY_H_
|