| OLD | NEW |
| 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<VideoEncoderRowBased> encoder( |
| 16 VideoEncoderRowBased::CreateZlibEncoder()); |
| 16 scoped_ptr<VideoDecoderRowBased> decoder( | 17 scoped_ptr<VideoDecoderRowBased> decoder( |
| 17 VideoDecoderRowBased::CreateZlibDecoder()); | 18 VideoDecoderRowBased::CreateZlibDecoder()); |
| 18 TestEncoderDecoder(encoder.get(), decoder.get(), true); | 19 TestVideoEncoderDecoder(encoder.get(), decoder.get(), true); |
| 19 } | 20 } |
| 20 | 21 |
| 21 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) { | 22 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) { |
| 22 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder(64)); | 23 scoped_ptr<VideoEncoderRowBased> encoder( |
| 24 VideoEncoderRowBased::CreateZlibEncoder(64)); |
| 23 scoped_ptr<VideoDecoderRowBased> decoder( | 25 scoped_ptr<VideoDecoderRowBased> decoder( |
| 24 VideoDecoderRowBased::CreateZlibDecoder()); | 26 VideoDecoderRowBased::CreateZlibDecoder()); |
| 25 TestEncoderDecoder(encoder.get(), decoder.get(), true); | 27 TestVideoEncoderDecoder(encoder.get(), decoder.get(), true); |
| 26 } | 28 } |
| 27 | 29 |
| 28 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) { | 30 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) { |
| 29 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); | 31 scoped_ptr<VideoEncoderRowBased> encoder( |
| 32 VideoEncoderRowBased::CreateZlibEncoder()); |
| 30 scoped_ptr<VideoDecoderRowBased> decoder( | 33 scoped_ptr<VideoDecoderRowBased> decoder( |
| 31 VideoDecoderRowBased::CreateZlibDecoder()); | 34 VideoDecoderRowBased::CreateZlibDecoder()); |
| 32 TestEncoderDecoder(encoder.get(), decoder.get(), false); | 35 TestVideoEncoderDecoder(encoder.get(), decoder.get(), false); |
| 33 } | 36 } |
| 34 | 37 |
| 35 } // namespace remoting | 38 } // namespace remoting |
| OLD | NEW |