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

Unified Diff: remoting/base/decoder_vp8_unittest.cc

Issue 10833022: [Chromoting] Add a unit test to verify that the VP8 codec doesn't change color values too much. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo. Created 8 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/base/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/base/decoder_vp8_unittest.cc
diff --git a/remoting/base/decoder_vp8_unittest.cc b/remoting/base/decoder_vp8_unittest.cc
index 4cdb573d66afa8a3f0cc188c20307b142e8cebdf..10d1b9f6fa5e4abd608e79106ae7803c21eacd01 100644
--- a/remoting/base/decoder_vp8_unittest.cc
+++ b/remoting/base/decoder_vp8_unittest.cc
@@ -16,4 +16,13 @@ TEST(DecoderVp8Test, EncodeAndDecode) {
TestEncoderDecoder(&encoder, &decoder, false);
}
+// Check that encoding and decoding a particular frame doesn't change the
+// frame too much. The frame used is a gradient, which does not contain sharp
+// transitions, so encoding lossiness should not be too high.
+TEST(DecoderVp8Test, Gradient) {
+ EncoderVp8 encoder;
+ DecoderVp8 decoder;
+ TestEncoderDecoderGradient(&encoder, &decoder, 0.03, 0.01);
+}
+
} // namespace remoting
« no previous file with comments | « remoting/base/codec_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698