Showing the changes to test/api (2 of 6 files). Show all
Unified · Split
| @@ -27,8 +27,9 @@ void CheckDecoderInterface(ISVCDecoder* p, CheckFunc check) { · 26 unmodified lines | ||
| 27 | 27 | CHECK(3, p, DecodeFrame); |
| 28 | 28 | CHECK(4, p, DecodeFrame2); |
| 29 | 29 | CHECK(5, p, DecodeFrameEx); |
| 30 | − CHECK(6, p, SetOption); | |
| 31 | − CHECK(7, p, GetOption); | |
| 30 | + CHECK(6, p, DecodeParser); | |
| 31 | + CHECK(7, p, SetOption); | |
| 32 | + CHECK(8, p, GetOption); | |
| 32 | 33 | } |
| 33 | 34 | |
| 34 | 35 | struct bool_test_struct { |
| @@ -88,13 +88,18 @@ struct SVCDecoderImpl : public ISVCDecoder { · 87 unmodified lines | ||
| 88 | 88 | EXPECT_TRUE (gThis == this); |
| 89 | 89 | return static_cast<DECODING_STATE> (5); |
| 90 | 90 | } |
| 91 | + virtual DECODING_STATE EXTAPI DecodeParser (const unsigned char* pSrc, | |
| 92 | + const int iSrcLen, SParserBsInfo* pDstInfo) { | |
| 93 | + EXPECT_TRUE (gThis == this); | |
| 94 | + return static_cast<DECODING_STATE> (6); | |
| 95 | + } | |
| 91 | 96 | virtual long EXTAPI SetOption (DECODER_OPTION eOptionId, void* pOption) { |
| 92 | 97 | EXPECT_TRUE (gThis == this); |
| 93 | − return 6; | |
| 98 | + return 7; | |
| 94 | 99 | } |
| 95 | 100 | virtual long EXTAPI GetOption (DECODER_OPTION eOptionId, void* pOption) { |
| 96 | 101 | EXPECT_TRUE (gThis == this); |
| 97 | − return 7; | |
| 102 | + return 8; | |
| 98 | 103 | } |
| 99 | 104 | }; |
| 100 | 105 | |