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
3 // found in the LICENSE file.
5 #ifndef REMOTING_CODEC_CODEC_TEST_H_
6 #define REMOTING_CODEC_CODEC_TEST_H_
8 #include "base/memory/ref_counted.h"
9 #include "media/base/video_frame.h"
10 #include "media/video/capture/screen/screen_capture_data.h"
17 // Generate test data and test the encoder for a regular encoding sequence.
18 // This will test encoder test and the sequence of messages sent.
20 // If |strict| is set to true then this routine will make sure the updated
21 // rects match dirty rects.
22 void TestVideoEncoder(VideoEncoder
* encoder
, bool strict
);
24 // Generate test data and test the encoder and decoder pair.
26 // If |strict| is set to true, this routine will make sure the updated rects
28 void TestVideoEncoderDecoder(VideoEncoder
* encoder
,
29 VideoDecoder
* decoder
,
32 // Generate a frame containing a gradient, and test the encoder and decoder
34 void TestVideoEncoderDecoderGradient(VideoEncoder
* encoder
,
35 VideoDecoder
* decoder
,
36 const SkISize
& screen_size
,
37 const SkISize
& view_size
,
38 double max_error_limit
,
39 double mean_error_limit
);
41 } // namespace remoting
43 #endif // REMOTING_CODEC_CODEC_TEST_H_