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

Side by Side Diff: remoting/base/encode_decode_unittest.cc

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 years, 2 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
« no previous file with comments | « remoting/base/decompressor_zlib.cc ('k') | remoting/base/encoder_zlib.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "media/base/video_frame.h"
6 #include "remoting/base/codec_test.h"
7 #include "remoting/base/decoder_row_based.h"
8 #include "remoting/base/encoder_zlib.h"
9 #include "remoting/client/mock_objects.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 namespace remoting {
13
14 TEST(EncodeDecodeTest, EncodeAndDecodeZlib) {
15 EncoderZlib encoder;
16 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder());
17 decoder->set_reverse_rows(false);
18 TestEncoderDecoder(&encoder, decoder.get(), true);
19 }
20
21 TEST(EncodeDecodeTest, EncodeAndDecodeSmallOutputBufferZlib) {
22 EncoderZlib encoder(64);
23 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder());
24 decoder->set_reverse_rows(false);
25 TestEncoderDecoder(&encoder, decoder.get(), true);
26 }
27
28 TEST(EncodeDecodeTest, EncodeAndDecodeNoneStrictZlib) {
29 EncoderZlib encoder;
30 scoped_ptr<DecoderRowBased> decoder(DecoderRowBased::CreateZlibDecoder());
31 TestEncoderDecoder(&encoder, decoder.get(), false);
32 }
33
34 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/decompressor_zlib.cc ('k') | remoting/base/encoder_zlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698