blob: d1d409d3f95163f0d2b251b51edb0f34bb391b68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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 "testing/gtest/include/gtest/gtest.h"
namespace remoting {
TEST(EncodeDecodeTest, EncodeAndDecodeZlib) {
scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder());
scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder());
decoder->set_reverse_rows(false);
TestEncoderDecoder(encoder.get(), decoder.get(), true);
}
TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) {
scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder(64));
scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder());
decoder->set_reverse_rows(false);
TestEncoderDecoder(encoder.get(), decoder.get(), true);
}
TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) {
scoped_ptr<EncoderRowBased> encoder(EncoderRowBased::CreateZlibEncoder());
scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder());
TestEncoderDecoder(encoder.get(), decoder.get(), false);
}
} // namespace remoting
|