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

Side by Side Diff: remoting/codec/codec_test.h

Issue 1213323003: Supply empty frames until codec is done with top-off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Loosen top-off frame count tests Created 5 years, 5 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 | « no previous file | remoting/codec/codec_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_CODEC_CODEC_TEST_H_ 5 #ifndef REMOTING_CODEC_CODEC_TEST_H_
6 #define REMOTING_CODEC_CODEC_TEST_H_ 6 #define REMOTING_CODEC_CODEC_TEST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Generate test data and test the encoder for a regular encoding sequence. 22 // Generate test data and test the encoder for a regular encoding sequence.
23 // This will test encoder test and the sequence of messages sent. 23 // This will test encoder test and the sequence of messages sent.
24 // 24 //
25 // If |strict| is set to true then this routine will make sure the updated 25 // If |strict| is set to true then this routine will make sure the updated
26 // rects match dirty rects. 26 // rects match dirty rects.
27 void TestVideoEncoder(VideoEncoder* encoder, bool strict); 27 void TestVideoEncoder(VideoEncoder* encoder, bool strict);
28 28
29 // Generate test data and test the encoder for a sequence of one "changed" 29 // Generate test data and test the encoder for a sequence of one "changed"
30 // frame followed by one or more "unchanged" frames, and verify that the 30 // frame followed by one or more "unchanged" frames, and verify that the
31 // encoder sends exactly |topoff_frames| of non-empty data for unchanged 31 // encoder sends up to |max_topoff_frames| of non-empty data for unchanged
32 // frames, after which it returns null frames. 32 // frames, after which it returns null frames.
33 void TestVideoEncoderEmptyFrames(VideoEncoder* encoder, int topoff_frames); 33 void TestVideoEncoderEmptyFrames(VideoEncoder* encoder, int max_topoff_frames);
34 34
35 // Generate test data and test the encoder and decoder pair. 35 // Generate test data and test the encoder and decoder pair.
36 // 36 //
37 // If |strict| is set to true, this routine will make sure the updated rects 37 // If |strict| is set to true, this routine will make sure the updated rects
38 // are correct. 38 // are correct.
39 void TestVideoEncoderDecoder(VideoEncoder* encoder, 39 void TestVideoEncoderDecoder(VideoEncoder* encoder,
40 VideoDecoder* decoder, 40 VideoDecoder* decoder,
41 bool strict); 41 bool strict);
42 42
43 // Generate a frame containing a gradient, and test the encoder and decoder 43 // Generate a frame containing a gradient, and test the encoder and decoder
(...skipping 11 matching lines...) Expand all
55 // supply any frames then a single full-frame of randomized pixels is used. 55 // supply any frames then a single full-frame of randomized pixels is used.
56 float MeasureVideoEncoderFpsWithSize(VideoEncoder* encoder, 56 float MeasureVideoEncoderFpsWithSize(VideoEncoder* encoder,
57 const webrtc::DesktopSize& size); 57 const webrtc::DesktopSize& size);
58 float MeasureVideoEncoderFpsWithFrames( 58 float MeasureVideoEncoderFpsWithFrames(
59 VideoEncoder* encoder, 59 VideoEncoder* encoder,
60 const std::list<webrtc::DesktopFrame*>& frames); 60 const std::list<webrtc::DesktopFrame*>& frames);
61 61
62 } // namespace remoting 62 } // namespace remoting
63 63
64 #endif // REMOTING_CODEC_CODEC_TEST_H_ 64 #endif // REMOTING_CODEC_CODEC_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/codec/codec_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698