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 "media/base/video_frame.h" | 5 #include "media/base/video_frame.h" |
6 #include "remoting/base/codec_test.h" | 6 #include "remoting/codec/codec_test.h" |
7 #include "remoting/base/decoder_row_based.h" | 7 #include "remoting/codec/video_decoder_row_based.h" |
8 #include "remoting/base/encoder_row_based.h" | 8 #include "remoting/codec/video_encoder_row_based.h" |
Sergey Ulanov
2012/08/22 16:10:28
move this to the top
kxing
2012/08/22 17:08:05
Done.
| |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 TEST(EncodeDecodeTest, EncodeAndDecodeZlib) { | 13 TEST(EncodeDecodeTest, EncodeAndDecodeZlib) { |
14 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); | 14 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); |
15 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); | 15 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); |
16 TestEncoderDecoder(encoder.get(), decoder.get(), true); | 16 TestEncoderDecoder(encoder.get(), decoder.get(), true); |
17 } | 17 } |
18 | 18 |
19 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) { | 19 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) { |
20 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder(64)); | 20 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder(64)); |
21 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); | 21 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); |
22 TestEncoderDecoder(encoder.get(), decoder.get(), true); | 22 TestEncoderDecoder(encoder.get(), decoder.get(), true); |
23 } | 23 } |
24 | 24 |
25 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) { | 25 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) { |
26 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); | 26 scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); |
27 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); | 27 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); |
28 TestEncoderDecoder(encoder.get(), decoder.get(), false); | 28 TestEncoderDecoder(encoder.get(), decoder.get(), false); |
29 } | 29 } |
30 | 30 |
31 } // namespace remoting | 31 } // namespace remoting |
OLD | NEW |