#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/client/software_video_renderer.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "remoting/client/client_context.h"
#include "remoting/codec/video_encoder_verbatim.h"
#include "remoting/proto/video.pb.h"
#include "remoting/protocol/frame_consumer.h"
#include "remoting/protocol/session_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
DesktopFrame;
namespace remoting {
namespace {
const int kFrameWidth = …;
const int kFrameHeight = …;
class TestFrameConsumer : public protocol::FrameConsumer { … };
std::unique_ptr<DesktopFrame> CreateTestFrame(int index) { … }
bool CompareFrames(const DesktopFrame& a, const DesktopFrame& b) { … }
void SetTrue(int* out) { … }
}
class SoftwareVideoRendererTest : public ::testing::Test { … };
TEST_F(SoftwareVideoRendererTest, DecodeFrame) { … }
}