ref: 9c6ce43df61da5e5c76591bb76224606c871a928
parent: 1e753387c837fa1be82b5fcc9b2879e5e8decd09
author: Johann <[email protected]>
date: Tue Nov 4 03:20:25 EST 2014
Add some indirection to the quantize test Visual Studio and XCode require the address of the functions be passed. Change-Id: Id39cab8e50061fdc6ac6018371a3a158c713e14b
--- a/test/quantize_test.cc
+++ b/test/quantize_test.cc
@@ -213,36 +213,37 @@
INSTANTIATE_TEST_CASE_P(
SSE2, QuantizeTest,
::testing::Values(
- make_tuple(vp8_fast_quantize_b_sse2, vp8_fast_quantize_b_c),
- make_tuple(vp8_regular_quantize_b_sse2, vp8_regular_quantize_b_c)));
+ make_tuple(&vp8_fast_quantize_b_sse2, &vp8_fast_quantize_b_c),
+ make_tuple(&vp8_regular_quantize_b_sse2, &vp8_regular_quantize_b_c)));
#endif // HAVE_SSE2
#if HAVE_SSSE3
INSTANTIATE_TEST_CASE_P(SSSE3, QuantizeTest,
- ::testing::Values(make_tuple(vp8_fast_quantize_b_ssse3,
- vp8_fast_quantize_b_c)));
+ ::testing::Values(make_tuple(&vp8_fast_quantize_b_ssse3,
+ &vp8_fast_quantize_b_c)));
#endif // HAVE_SSSE3
#if HAVE_SSE4_1
-INSTANTIATE_TEST_CASE_P(SSE4_1, QuantizeTest, ::testing::Values(make_tuple(
- vp8_regular_quantize_b_sse4_1,
- vp8_regular_quantize_b_c)));
+INSTANTIATE_TEST_CASE_P(
+ SSE4_1, QuantizeTest,
+ ::testing::Values(make_tuple(&vp8_regular_quantize_b_sse4_1,
+ &vp8_regular_quantize_b_c)));
#endif // HAVE_SSE4_1
#if HAVE_MEDIA
INSTANTIATE_TEST_CASE_P(MEDIA, QuantizeTest,
- ::testing::Values(make_tuple(vp8_fast_quantize_b_armv6,
- vp8_fast_quantize_b_c)));
+ ::testing::Values(make_tuple(&vp8_fast_quantize_b_armv6,
+ &vp8_fast_quantize_b_c)));
#endif // HAVE_MEDIA
#if HAVE_NEON_ASM
INSTANTIATE_TEST_CASE_P(NEON, QuantizeTest,
- ::testing::Values(make_tuple(vp8_fast_quantize_b_neon,
- vp8_fast_quantize_b_c)));
+ ::testing::Values(make_tuple(&vp8_fast_quantize_b_neon,
+ &vp8_fast_quantize_b_c)));
INSTANTIATE_TEST_CASE_P(
NEON, QuantizeTestPair,
- ::testing::Values(make_tuple(vp8_fast_quantize_b_pair_neon,
- vp8_fast_quantize_b_pair_c)));
+ ::testing::Values(make_tuple(&vp8_fast_quantize_b_pair_neon,
+ &vp8_fast_quantize_b_pair_c)));
#endif // HAVE_NEON_ASM
} // namespace