diff options
Diffstat (limited to 'remoting/base/encode_decode_unittest.cc')
-rw-r--r-- | remoting/base/encode_decode_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/remoting/base/encode_decode_unittest.cc b/remoting/base/encode_decode_unittest.cc index d1d409d..4e859a6 100644 --- a/remoting/base/encode_decode_unittest.cc +++ b/remoting/base/encode_decode_unittest.cc @@ -5,29 +5,29 @@ #include "media/base/video_frame.h" #include "remoting/base/codec_test.h" #include "remoting/base/decoder_row_based.h" -#include "remoting/base/encoder_row_based.h" +#include "remoting/base/encoder_zlib.h" #include "testing/gtest/include/gtest/gtest.h" namespace remoting { TEST(EncodeDecodeTest, EncodeAndDecodeZlib) { - scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); + EncoderZlib encoder; scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); decoder->set_reverse_rows(false); - TestEncoderDecoder(encoder.get(), decoder.get(), true); + TestEncoderDecoder(&encoder, decoder.get(), true); } TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) { - scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder(64)); + EncoderZlib encoder(64); scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); decoder->set_reverse_rows(false); - TestEncoderDecoder(encoder.get(), decoder.get(), true); + TestEncoderDecoder(&encoder, decoder.get(), true); } TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) { - scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder()); + EncoderZlib encoder; scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder()); - TestEncoderDecoder(encoder.get(), decoder.get(), false); + TestEncoderDecoder(&encoder, decoder.get(), false); } } // namespace remoting |