Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: remoting/codec/video_encoder_vpx_unittest.cc

Issue 1264743002: Make video encoder/decoder test faster (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ASan failure Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_vpx_unittest.cc
diff --git a/remoting/codec/video_encoder_vpx_unittest.cc b/remoting/codec/video_encoder_vpx_unittest.cc
index dfb3627d9c0df5f60dc543f869cc384c7265799e..3914a0d3a65c20ac22cadb8191870f671b22898a 100644
--- a/remoting/codec/video_encoder_vpx_unittest.cc
+++ b/remoting/codec/video_encoder_vpx_unittest.cc
@@ -54,7 +54,7 @@ TEST(VideoEncoderVpxTest, Vp9) {
TEST(VideoEncoderVpxTest, Vp9LossyEncodeSwitching) {
scoped_ptr<VideoEncoderVpx> encoder(VideoEncoderVpx::CreateForVP9());
- webrtc::DesktopSize frame_size(1024, 768);
+ webrtc::DesktopSize frame_size(100, 100);
scoped_ptr<webrtc::DesktopFrame> frame(CreateTestFrame(frame_size));
// Lossy encode the first frame.
@@ -80,7 +80,7 @@ TEST(VideoEncoderVpxTest, Vp9LossyEncodeSwitching) {
TEST(VideoEncoderVpxTest, Vp9LossyColorSwitching) {
scoped_ptr<VideoEncoderVpx> encoder(VideoEncoderVpx::CreateForVP9());
- webrtc::DesktopSize frame_size(1024, 768);
+ webrtc::DesktopSize frame_size(100, 100);
scoped_ptr<webrtc::DesktopFrame> frame(CreateTestFrame(frame_size));
// Lossy encode the first frame.
@@ -100,7 +100,7 @@ TEST(VideoEncoderVpxTest, Vp9LossyColorSwitching) {
TEST(VideoEncoderVpxTest, Vp8IgnoreLossy) {
scoped_ptr<VideoEncoderVpx> encoder(VideoEncoderVpx::CreateForVP8());
- webrtc::DesktopSize frame_size(1024, 768);
+ webrtc::DesktopSize frame_size(100, 100);
scoped_ptr<webrtc::DesktopFrame> frame(CreateTestFrame(frame_size));
// Encode a frame, to give the encoder a chance to crash if misconfigured.
@@ -113,7 +113,7 @@ TEST(VideoEncoderVpxTest, Vp8IgnoreLossy) {
// Test that calling Encode with a larger frame size than the initial one
// does not cause VP8 to crash.
TEST(VideoEncoderVpxTest, Vp8SizeChangeNoCrash) {
- webrtc::DesktopSize frame_size(1000, 1000);
+ webrtc::DesktopSize frame_size(100, 100);
scoped_ptr<VideoEncoderVpx> encoder(VideoEncoderVpx::CreateForVP8());
@@ -132,7 +132,7 @@ TEST(VideoEncoderVpxTest, Vp8SizeChangeNoCrash) {
// Test that calling Encode with a larger frame size than the initial one
// does not cause VP9 to crash.
TEST(VideoEncoderVpxTest, Vp9SizeChangeNoCrash) {
- webrtc::DesktopSize frame_size(1000, 1000);
+ webrtc::DesktopSize frame_size(100, 100);
scoped_ptr<VideoEncoderVpx> encoder(VideoEncoderVpx::CreateForVP9());
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698