Chromium Code Reviews| Index: webrtc/test/frame_utils.h |
| diff --git a/webrtc/test/statistics.h b/webrtc/test/frame_utils.h |
| similarity index 53% |
| copy from webrtc/test/statistics.h |
| copy to webrtc/test/frame_utils.h |
| index d4a111e0615e8928305532c0aafbdec3660a875f..b9dd664d62a2dbd647f107f7196f93b52c13b150 100644 |
| --- a/webrtc/test/statistics.h |
| +++ b/webrtc/test/frame_utils.h |
| @@ -7,30 +7,24 @@ |
| * in the file PATENTS. All contributing project authors may |
| * be found in the AUTHORS file in the root of the source tree. |
| */ |
| -#ifndef WEBRTC_TEST_STATISTICS_H_ |
| -#define WEBRTC_TEST_STATISTICS_H_ |
| +#ifndef WEBRTC_COMMON_VIDEO_TEST_FRAME_UTILS_H_ |
|
pbos-webrtc
2016/02/10 13:49:24
remove COMMON_VIDEO_ to pass the presubmit
nisse-webrtc
2016/02/10 13:55:18
Done.
|
| +#define WEBRTC_COMMON_VIDEO_TEST_FRAME_UTILS_H_ |
| -#include "webrtc/typedefs.h" |
| +#include "webrtc/base/basictypes.h" |
| namespace webrtc { |
| +class VideoFrame; |
| namespace test { |
| -class Statistics { |
| - public: |
| - Statistics(); |
| +bool EqualPlane(const uint8_t* data1, |
| + const uint8_t* data2, |
| + int stride, |
| + int width, |
| + int height); |
| - void AddSample(double sample); |
| +bool FramesEqual(const webrtc::VideoFrame& f1, const webrtc::VideoFrame& f2); |
| - double Mean() const; |
| - double Variance() const; |
| - double StandardDeviation() const; |
| - |
| - private: |
| - double sum_; |
| - double sum_squared_; |
| - uint64_t count_; |
| -}; |
| } // namespace test |
| } // namespace webrtc |
| -#endif // WEBRTC_TEST_STATISTICS_H_ |
| +#endif // WEBRTC_COMMON_VIDEO_TEST_FRAME_UTILS_H_ |