diff options
Diffstat (limited to 'test/vp8_decrypt_test.cc')
-rw-r--r-- | test/vp8_decrypt_test.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/vp8_decrypt_test.cc b/test/vp8_decrypt_test.cc index 1b5b08344..470fdf10d 100644 --- a/test/vp8_decrypt_test.cc +++ b/test/vp8_decrypt_test.cc @@ -43,7 +43,7 @@ void test_decrypt_cb(void *decrypt_state, const uint8_t *input, namespace libvpx_test { -TEST(TestDecrypt, DecryptWorks) { +TEST(TestDecrypt, DecryptWorksVp8) { libvpx_test::IVFVideoSource video("vp80-00-comprehensive-001.ivf"); video.Init(); @@ -59,14 +59,12 @@ TEST(TestDecrypt, DecryptWorks) { // decrypt frame video.Next(); -#if CONFIG_DECRYPT std::vector<uint8_t> encrypted(video.frame_size()); encrypt_buffer(video.cxdata(), &encrypted[0], video.frame_size(), 0); - vp8_decrypt_init di = { test_decrypt_cb, &encrypted[0] }; - decoder.Control(VP8D_SET_DECRYPTOR, &di); -#endif // CONFIG_DECRYPT + vpx_decrypt_init di = { test_decrypt_cb, &encrypted[0] }; + decoder.Control(VPXD_SET_DECRYPTOR, &di); - res = decoder.DecodeFrame(video.cxdata(), video.frame_size()); + res = decoder.DecodeFrame(&encrypted[0], encrypted.size()); ASSERT_EQ(VPX_CODEC_OK, res) << decoder.DecodeError(); } |