#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/codec/video_encoder_vpx.h"
#include <stdint.h>
#include <limits>
#include <memory>
#include <vector>
#include "remoting/codec/codec_test.h"
#include "remoting/proto/video.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
namespace remoting {
const uint32_t kBlueColor = …;
const uint32_t kGreenColor = …;
static std::unique_ptr<webrtc::DesktopFrame> CreateTestFrame(
const webrtc::DesktopSize& frame_size) { … }
TEST(VideoEncoderVpxTest, Vp8) { … }
TEST(VideoEncoderVpxTest, Vp9) { … }
TEST(VideoEncoderVpxTest, Vp9LossyColorSwitching) { … }
TEST(VideoEncoderVpxTest, Vp8IgnoreLossy) { … }
TEST(VideoEncoderVpxTest, Vp8SizeChangeNoCrash) { … }
TEST(VideoEncoderVpxTest, Vp9SizeChangeNoCrash) { … }
TEST(VideoEncoderVpxTest, DpiPropagation) { … }
TEST(VideoEncoderVpxTest, Vp8EncodeUnchangedFrame) { … }
TEST(VideoEncoderVpxTest, Vp9LossyUnchangedFrame) { … }
}