#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_underlying_source_wrapper.h"
#include <memory>
#include "base/test/mock_callback.h"
#include "base/unguessable_token.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_tester.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_rtc_encoded_audio_frame.h"
#include "third_party/blink/renderer/core/streams/readable_stream.h"
#include "third_party/blink/renderer/core/streams/readable_stream_default_controller_with_script_scope.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_frame.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/webrtc/api/frame_transformer_interface.h"
#include "third_party/webrtc/api/test/mock_transformable_audio_frame.h"
#include "third_party/webrtc/api/test/mock_transformable_video_frame.h"
namespace blink {
NiceMock;
MockTransformableAudioFrame;
MockTransformableVideoFrame;
class RTCEncodedUnderlyingSourceWrapperTest : public testing::Test { … };
TEST_F(RTCEncodedUnderlyingSourceWrapperTest,
AudioSourceDataFlowsThroughStreamAndCloses) { … }
TEST_F(RTCEncodedUnderlyingSourceWrapperTest, AudioCancelStream) { … }
TEST_F(RTCEncodedUnderlyingSourceWrapperTest,
VideoSourceDataFlowsThroughStreamAndCloses) { … }
TEST_F(RTCEncodedUnderlyingSourceWrapperTest, VideoCancelStream) { … }
}