2023-03-05 11:03:06 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020 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_TRANSFORMABLE_AUDIO_FRAME_H_
|
|
|
|
|
#define API_TEST_MOCK_TRANSFORMABLE_AUDIO_FRAME_H_
|
|
|
|
|
|
2023-11-06 11:28:30 +01:00
|
|
|
#include <string>
|
|
|
|
|
|
2023-03-05 11:03:06 +00:00
|
|
|
#include "api/frame_transformer_interface.h"
|
2024-07-30 15:47:41 +02:00
|
|
|
#include "api/units/timestamp.h"
|
2023-03-05 11:03:06 +00:00
|
|
|
#include "test/gmock.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class MockTransformableAudioFrame : public TransformableAudioFrameInterface {
|
|
|
|
|
public:
|
2024-05-16 13:38:25 +02:00
|
|
|
MockTransformableAudioFrame() : TransformableAudioFrameInterface(Passkey()) {}
|
|
|
|
|
|
2023-03-05 11:03:06 +00:00
|
|
|
MOCK_METHOD(rtc::ArrayView<const uint8_t>, GetData, (), (const, override));
|
|
|
|
|
MOCK_METHOD(void, SetData, (rtc::ArrayView<const uint8_t>), (override));
|
2023-06-09 11:28:40 +02:00
|
|
|
MOCK_METHOD(void, SetRTPTimestamp, (uint32_t), (override));
|
2023-03-05 11:03:06 +00:00
|
|
|
MOCK_METHOD(uint8_t, GetPayloadType, (), (const, override));
|
|
|
|
|
MOCK_METHOD(uint32_t, GetSsrc, (), (const, override));
|
|
|
|
|
MOCK_METHOD(uint32_t, GetTimestamp, (), (const, override));
|
2023-11-06 11:28:30 +01:00
|
|
|
MOCK_METHOD(std::string, GetMimeType, (), (const, override));
|
2023-03-05 11:03:06 +00:00
|
|
|
MOCK_METHOD(rtc::ArrayView<const uint32_t>,
|
|
|
|
|
GetContributingSources,
|
|
|
|
|
(),
|
|
|
|
|
(const override));
|
2023-06-19 15:13:08 +00:00
|
|
|
MOCK_METHOD(const absl::optional<uint16_t>,
|
|
|
|
|
SequenceNumber,
|
|
|
|
|
(),
|
|
|
|
|
(const, override));
|
|
|
|
|
MOCK_METHOD(TransformableFrameInterface::Direction,
|
|
|
|
|
GetDirection,
|
|
|
|
|
(),
|
|
|
|
|
(const, override));
|
2023-06-22 13:32:24 +00:00
|
|
|
MOCK_METHOD(absl::optional<uint64_t>,
|
|
|
|
|
AbsoluteCaptureTimestamp,
|
|
|
|
|
(),
|
|
|
|
|
(const, override));
|
|
|
|
|
MOCK_METHOD(TransformableAudioFrameInterface::FrameType,
|
|
|
|
|
Type,
|
|
|
|
|
(),
|
|
|
|
|
(const, override));
|
2024-04-29 15:13:48 +02:00
|
|
|
MOCK_METHOD(absl::optional<uint8_t>, AudioLevel, (), (const, override));
|
2024-07-30 15:47:41 +02:00
|
|
|
|
|
|
|
|
MOCK_METHOD(absl::optional<Timestamp>, ReceiveTime, (), (const, override));
|
2023-03-05 11:03:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
#endif // API_TEST_MOCK_TRANSFORMABLE_AUDIO_FRAME_H_
|