Showing the changes to test/api/decode_encode_test.cpp (1 of 6 files). Show all
Unified · Split
| @@ -102,11 +102,18 @@ TEST_P (DecodeEncodeTest, CompareOutput) { · 101 unmodified lines | |||
| 102 | CompareHash (digest, p.hashStr); | 102 | CompareHash (digest, p.hashStr); |
| 103 | } | 103 | } |
| 104 | } | 104 | } |
| 105 | 105 | #if defined(ANDROID_NDK) | |
| 106 | static const DecodeEncodeFileParam kFileParamArray[] = { | ||
| 107 | {"/sdcard/res/test_vd_1d.264", "a4c7299ec1a7bacd5819685e221a79ac2b56cdbc", 320, 192, 12.0f}, | ||
| 108 | {"/sdcard/res/test_vd_rc.264", "106fd8cc978c1801b0d1f8297e9b7f17d5336e15", 320, 192, 12.0f}, | ||
| 109 | }; | ||
| 110 | #else | ||
| 106 | static const DecodeEncodeFileParam kFileParamArray[] = { | 111 | static const DecodeEncodeFileParam kFileParamArray[] = { |
| 107 | {"res/test_vd_1d.264", "a4c7299ec1a7bacd5819685e221a79ac2b56cdbc", 320, 192, 12.0f}, | 112 | {"res/test_vd_1d.264", "a4c7299ec1a7bacd5819685e221a79ac2b56cdbc", 320, 192, 12.0f}, |
| 108 | {"res/test_vd_rc.264", "106fd8cc978c1801b0d1f8297e9b7f17d5336e15", 320, 192, 12.0f}, | 113 | {"res/test_vd_rc.264", "106fd8cc978c1801b0d1f8297e9b7f17d5336e15", 320, 192, 12.0f}, |
| 109 | }; | 114 | }; |
| 110 | 115 | ||
| 116 | #endif | ||
| 117 | |||
| 111 | INSTANTIATE_TEST_CASE_P (DecodeEncodeFile, DecodeEncodeTest, | 118 | INSTANTIATE_TEST_CASE_P (DecodeEncodeFile, DecodeEncodeTest, |
| 112 | ::testing::ValuesIn (kFileParamArray)); | 119 | ::testing::ValuesIn (kFileParamArray)); |