blob: 2e018d57ba7d374bb4cc4ce49aad40e7054d9ca9 [file] [log] [blame]
Jonas Oreland65455162022-06-08 09:25:461/*
2 * Copyright 2018 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
11#ifndef API_TEST_MOCK_ENCODER_SELECTOR_H_
12#define API_TEST_MOCK_ENCODER_SELECTOR_H_
13
14#include "api/video_codecs/video_encoder_factory.h"
15#include "test/gmock.h"
16
17namespace webrtc {
18
19class MockEncoderSelector
20 : public VideoEncoderFactory::EncoderSelectorInterface {
21 public:
22 MOCK_METHOD(void,
23 OnCurrentEncoder,
24 (const SdpVideoFormat& format),
25 (override));
26
27 MOCK_METHOD(absl::optional<SdpVideoFormat>,
28 OnAvailableBitrate,
29 (const DataRate& rate),
30 (override));
31
32 MOCK_METHOD(absl::optional<SdpVideoFormat>,
33 OnResolutionChange,
34 (const RenderResolution& resolution),
35 (override));
36
37 MOCK_METHOD(absl::optional<SdpVideoFormat>, OnEncoderBroken, (), (override));
38};
39
40} // namespace webrtc
41
42#endif // API_TEST_MOCK_ENCODER_SELECTOR_H_