ref: da379e11affa8bc377203ac6eccf3ef9cc27346a
parent: cbc276a3d4e3ff91d155e6f0d66f9033cec8b32b
author: James Zern <[email protected]>
date: Thu May 7 13:18:20 EDT 2020
decode_api_test: add negative test for vpx_codec_error_detail Change-Id: Ib55d46e9290d2bd36345ff4a9737e227664c2a5b
--- a/test/decode_api_test.cc
+++ b/test/decode_api_test.cc
@@ -41,6 +41,7 @@
vpx_codec_decode(NULL, NULL, NELEMENTS(buf), NULL, 0));
EXPECT_EQ(VPX_CODEC_INVALID_PARAM, vpx_codec_destroy(NULL));
EXPECT_TRUE(vpx_codec_error(NULL) != NULL);
+ EXPECT_TRUE(vpx_codec_error_detail(NULL) == NULL);
for (int i = 0; i < NELEMENTS(kCodecs); ++i) {
EXPECT_EQ(VPX_CODEC_INVALID_PARAM,