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

Side by Side Diff: remoting/base/decoder_zlib_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/decoder_zlib.cc ('k') | remoting/base/decompressor.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_zlib.h"
8 #include "remoting/base/decompressor_zlib.h"
9 #include "remoting/base/encoder_zlib.h"
10 #include "remoting/client/mock_objects.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12
13
14 namespace remoting {
15
16 TEST(DecoderZlibTest, EncodeAndDecode) {
17 EncoderZlib encoder;
18 DecoderZlib decoder;
19 decoder.set_reverse_rows(false);
20 TestEncoderDecoder(&encoder, &decoder, true);
21 }
22
23 TEST(DecoderZlibTest, EncodeAndDecodeSmallOutputBuffer) {
24 EncoderZlib encoder(64);
25 DecoderZlib decoder;
26 decoder.set_reverse_rows(false);
27 TestEncoderDecoder(&encoder, &decoder, true);
28 }
29
30 TEST(DecoderZlibTest, EncodeAndDecodeNoneStrict) {
31 EncoderZlib encoder;
32 DecoderZlib decoder;
33 TestEncoderDecoder(&encoder, &decoder, false);
34 }
35
36 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/decoder_zlib.cc ('k') | remoting/base/decompressor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698