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

Unified Diff: remoting/codec/video_encoder_verbatim_unittest.cc

Issue 11195029: Remove ZLib codec support from chromoting host and client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/video_encoder_verbatim.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_verbatim_unittest.cc
diff --git a/remoting/codec/video_encoder_verbatim_unittest.cc b/remoting/codec/video_encoder_verbatim_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d6315ee3ccae2d1e9a537186c0382933981d2ec8
--- /dev/null
+++ b/remoting/codec/video_encoder_verbatim_unittest.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/codec/video_encoder_verbatim.h"
+
+#include "remoting/codec/codec_test.h"
+#include "remoting/codec/video_decoder_verbatim.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace remoting {
+
+TEST(VideoEncoderVerbatimTest, TestVideoEncoder) {
+ scoped_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
+ TestVideoEncoder(encoder.get(), true);
+}
+
+TEST(VideoEncoderVerbatimTest, TestVideoEncoderSmallOutputBuffer) {
+ scoped_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
+ encoder->SetMaxPacketSize(16);
+ TestVideoEncoder(encoder.get(), true);
+}
+
+TEST(VideoEncoderVerbatimTest, EncodeAndDecode) {
+ scoped_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
+ scoped_ptr<VideoDecoderVerbatim> decoder(new VideoDecoderVerbatim());
+ TestVideoEncoderDecoder(encoder.get(), decoder.get(), false);
+}
+
+TEST(VideoEncoderVerbatimTest, EncodeAndDecodeSmallOutputBuffer) {
+ scoped_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
+ encoder->SetMaxPacketSize(16);
+ scoped_ptr<VideoDecoderVerbatim> decoder(new VideoDecoderVerbatim());
+ TestVideoEncoderDecoder(encoder.get(), decoder.get(), false);
+}
+
+} // namespace remoting
« no previous file with comments | « remoting/codec/video_encoder_verbatim.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698