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

Side by Side Diff: remoting/codec/video_encode_decode_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/codec/video_decoder_verbatim.cc ('k') | remoting/codec/video_encoder_row_based.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "remoting/codec/video_encoder_row_based.h"
6
7 #include "media/base/video_frame.h"
8 #include "remoting/codec/codec_test.h"
9 #include "remoting/codec/video_decoder_row_based.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 namespace remoting {
13
14 TEST(EncodeDecodeTest, EncodeAndDecodeZlib) {
15 scoped_ptr<VideoEncoderRowBased> encoder(
16 VideoEncoderRowBased::CreateZlibEncoder());
17 scoped_ptr<VideoDecoderRowBased> decoder(
18 VideoDecoderRowBased::CreateZlibDecoder());
19 TestVideoEncoderDecoder(encoder.get(), decoder.get(), true);
20 }
21
22 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) {
23 scoped_ptr<VideoEncoderRowBased> encoder(
24 VideoEncoderRowBased::CreateZlibEncoder(64));
25 scoped_ptr<VideoDecoderRowBased> decoder(
26 VideoDecoderRowBased::CreateZlibDecoder());
27 TestVideoEncoderDecoder(encoder.get(), decoder.get(), true);
28 }
29
30 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) {
31 scoped_ptr<VideoEncoderRowBased> encoder(
32 VideoEncoderRowBased::CreateZlibEncoder());
33 scoped_ptr<VideoDecoderRowBased> decoder(
34 VideoDecoderRowBased::CreateZlibDecoder());
35 TestVideoEncoderDecoder(encoder.get(), decoder.get(), false);
36 }
37
38 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/codec/video_decoder_verbatim.cc ('k') | remoting/codec/video_encoder_row_based.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698