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

Side by Side Diff: remoting/codec/video_encode_decode_unittest.cc

Issue 10873047: Renamed Decoder -> VideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/codec/video_encoder_row_based.h" 5 #include "remoting/codec/video_encoder_row_based.h"
6 6
7 #include "media/base/video_frame.h" 7 #include "media/base/video_frame.h"
8 #include "remoting/codec/codec_test.h" 8 #include "remoting/codec/codec_test.h"
9 #include "remoting/codec/video_decoder_row_based.h" 9 #include "remoting/codec/video_decoder_row_based.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 TEST(EncodeDecodeTest, EncodeAndDecodeZlib) { 14 TEST(EncodeDecodeTest, EncodeAndDecodeZlib) {
15 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); 15 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder());
16 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); 16 scoped_ptr<VideoDecoderRowBased> decoder(
17 VideoDecoderRowBased::CreateZlibDecoder());
17 TestEncoderDecoder(encoder.get(), decoder.get(), true); 18 TestEncoderDecoder(encoder.get(), decoder.get(), true);
18 } 19 }
19 20
20 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) { 21 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) {
21 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder(64)); 22 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder(64));
22 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); 23 scoped_ptr<VideoDecoderRowBased> decoder(
24 VideoDecoderRowBased::CreateZlibDecoder());
23 TestEncoderDecoder(encoder.get(), decoder.get(), true); 25 TestEncoderDecoder(encoder.get(), decoder.get(), true);
24 } 26 }
25 27
26 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) { 28 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) {
27 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); 29 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder());
28 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); 30 scoped_ptr<VideoDecoderRowBased> decoder(
31 VideoDecoderRowBased::CreateZlibDecoder());
29 TestEncoderDecoder(encoder.get(), decoder.get(), false); 32 TestEncoderDecoder(encoder.get(), decoder.get(), false);
30 } 33 }
31 34
32 } // namespace remoting 35 } // namespace remoting
OLDNEW
« remoting/codec/codec_test.h ('K') | « remoting/codec/video_decoder_vp8_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698