fix encode_api_test.cc compilation w/MSVC after: 8e8b06725f Fix test for CONFIG_REALTIME_ONLY. preprocessor checks can't be used within macros: test\encode_api_test.cc(351,1): error C2121: '#': invalid character: possibly the result of a macro expansion Change-Id: I7c357ce1ce816c3c3c80ae449eae8330d7f26836
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc index c7d0ef6..cea5aaf 100644 --- a/test/encode_api_test.cc +++ b/test/encode_api_test.cc
@@ -338,15 +338,17 @@ #endif } +const int kUsages[] = { + AOM_USAGE_REALTIME, +#if !CONFIG_REALTIME_ONLY + AOM_USAGE_GOOD_QUALITY, + AOM_USAGE_ALL_INTRA, +#endif +}; + INSTANTIATE_TEST_SUITE_P(All, EncodeAPIParameterized, testing::Combine( -#if CONFIG_REALTIME_ONLY - /*usage=*/testing::Values(AOM_USAGE_REALTIME), -#else - /*usage=*/testing::Values(AOM_USAGE_GOOD_QUALITY, - AOM_USAGE_REALTIME, - AOM_USAGE_ALL_INTRA), -#endif + /*usage=*/testing::ValuesIn(kUsages), /*speed=*/testing::Values(6, 7, 10), /*aq_mode=*/testing::Values(0, 1, 2, 3)));