#include "remoting/protocol/webrtc_video_track_source.h"
#include <memory>
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
#include "third_party/webrtc/rtc_base/ref_counted_object.h"
Field;
InSequence;
Property;
BasicDesktopFrame;
DesktopSize;
VideoFrame;
namespace remoting::protocol {
namespace {
class MockVideoSink : public rtc::VideoSinkInterface<VideoFrame> { … };
}
class WebrtcVideoTrackSourceTest : public testing::Test { … };
TEST_F(WebrtcVideoTrackSourceTest, AddSinkTriggersCallback) { … }
TEST_F(WebrtcVideoTrackSourceTest, CapturedFrameSentToAddedSink) { … }
TEST_F(WebrtcVideoTrackSourceTest, FramesHaveIncrementingIds) { … }
}