#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_frame.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_rtc_codec_specifics_vp_8.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_rtc_encoded_audio_frame_metadata.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_rtc_encoded_audio_frame_options.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_frame_delegate.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/webrtc/api/test/mock_transformable_audio_frame.h"
_;
NiceMock;
Return;
ReturnRef;
SaveArg;
MockTransformableAudioFrame;
namespace blink {
class RTCEncodedAudioFrameTest : public testing::Test { … };
void MockMetadata(MockTransformableAudioFrame* frame) { … }
RTCEncodedAudioFrameMetadata* CreateAudioMetadata() { … }
TEST_F(RTCEncodedAudioFrameTest, GetMetadataReturnsCorrectMetadata) { … }
TEST_F(RTCEncodedAudioFrameTest, SetMetadataOnEmptyFrameFails) { … }
TEST_F(RTCEncodedAudioFrameTest, SetMetadataModifiesRtpTimestamp) { … }
TEST_F(RTCEncodedAudioFrameTest, ConstructorFromNull) { … }
TEST_F(RTCEncodedAudioFrameTest, ConstructorOnEmptyFrameHasEmptyMetadata) { … }
TEST_F(RTCEncodedAudioFrameTest, ConstructorWithMetadataOnEmptyFrameFails) { … }
TEST_F(RTCEncodedAudioFrameTest,
ConstructorWithRTPTimestampMetadataOnEmptyFrameFails) { … }
TEST_F(RTCEncodedAudioFrameTest, ConstructorWithMetadataModifiesRtpTimestamp) { … }
TEST_F(RTCEncodedAudioFrameTest, ConstructorCopiesMetadata) { … }
TEST_F(RTCEncodedAudioFrameTest, ConstructorWithMetadataCopiesMetadata) { … }
TEST_F(RTCEncodedAudioFrameTest, ReadingDataOnEmptyFrameGivesDetachedFrame) { … }
TEST_F(RTCEncodedAudioFrameTest, PassWebRTCDetachesFrameData) { … }
}