| 51 | }; |
| 52 | |
| 53 | class DecoderOutputTest : public ::testing::WithParamInterface<FileParam>, |
| 54 | public DecoderInitTest, public BaseDecoderTest::Callback { |
| 55 | public: |
| 56 | virtual void SetUp() { |
| 57 | DecoderInitTest::SetUp(); |
| 58 | if (HasFatalFailure()) { |
| 59 | return; |
| 60 | } |
| 61 | SHA1Reset (&ctx_); |
| 62 | } |
| 63 | virtual void onDecodeFrame (const Frame& frame) { |
| 64 | const Plane& y = frame.y; |
| 65 | const Plane& u = frame.u; |
| 66 | const Plane& v = frame.v; |
| 67 | UpdateHashFromPlane (&ctx_, y.data, y.width, y.height, y.stride); |
| 68 | UpdateHashFromPlane (&ctx_, u.data, u.width, u.height, u.stride); |
| 69 | UpdateHashFromPlane (&ctx_, v.data, v.width, v.height, v.stride); |
| 70 | } |
| 71 | protected: |
| 72 | SHA1Context ctx_; |
| 73 | }; |
| 74 | |
| 75 | TEST_P (DecoderOutputTest, CompareOutput) { |
| 76 | FileParam p = GetParam(); |
nothing calls this directly
no outgoing calls
no test coverage detected