| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #include <string> | 10 #include <string> |
| 11 #include "./vpx_config.h" | 11 #include "./vpx_config.h" |
| 12 #if ARCH_X86 || ARCH_X86_64 | 12 #if ARCH_X86 || ARCH_X86_64 |
| 13 #include "vpx_ports/x86.h" | 13 #include "vpx_ports/x86.h" |
| 14 #endif | 14 #endif |
| 15 extern "C" { | 15 extern "C" { |
| 16 #if CONFIG_VP8 | 16 #if CONFIG_VP8 |
| 17 extern void vp8_rtcd(); | 17 extern void vp8_rtcd(); |
| 18 #endif | 18 #endif // CONFIG_VP8 |
| 19 #if CONFIG_VP9 | 19 #if CONFIG_VP9 |
| 20 extern void vp9_rtcd(); | 20 extern void vp9_rtcd(); |
| 21 #endif | 21 #endif // CONFIG_VP9 |
| 22 extern void vpx_dsp_rtcd(); |
| 23 extern void vpx_scale_rtcd(); |
| 22 } | 24 } |
| 23 #include "third_party/googletest/src/include/gtest/gtest.h" | 25 #include "third_party/googletest/src/include/gtest/gtest.h" |
| 24 | 26 |
| 25 static void append_negative_gtest_filter(const char *str) { | 27 static void append_negative_gtest_filter(const char *str) { |
| 26 std::string filter = ::testing::FLAGS_gtest_filter; | 28 std::string filter = ::testing::FLAGS_gtest_filter; |
| 27 // Negative patterns begin with one '-' followed by a ':' separated list. | 29 // Negative patterns begin with one '-' followed by a ':' separated list. |
| 28 if (filter.find('-') == std::string::npos) filter += '-'; | 30 if (filter.find('-') == std::string::npos) filter += '-'; |
| 29 filter += str; | 31 filter += str; |
| 30 ::testing::FLAGS_gtest_filter = filter; | 32 ::testing::FLAGS_gtest_filter = filter; |
| 31 } | 33 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 52 if (!(simd_caps & HAS_AVX2)) | 54 if (!(simd_caps & HAS_AVX2)) |
| 53 append_negative_gtest_filter(":AVX2/*"); | 55 append_negative_gtest_filter(":AVX2/*"); |
| 54 #endif | 56 #endif |
| 55 | 57 |
| 56 #if !CONFIG_SHARED | 58 #if !CONFIG_SHARED |
| 57 // Shared library builds don't support whitebox tests | 59 // Shared library builds don't support whitebox tests |
| 58 // that exercise internal symbols. | 60 // that exercise internal symbols. |
| 59 | 61 |
| 60 #if CONFIG_VP8 | 62 #if CONFIG_VP8 |
| 61 vp8_rtcd(); | 63 vp8_rtcd(); |
| 62 #endif | 64 #endif // CONFIG_VP8 |
| 63 #if CONFIG_VP9 | 65 #if CONFIG_VP9 |
| 64 vp9_rtcd(); | 66 vp9_rtcd(); |
| 65 #endif | 67 #endif // CONFIG_VP9 |
| 66 #endif | 68 vpx_dsp_rtcd(); |
| 69 vpx_scale_rtcd(); |
| 70 #endif // !CONFIG_SHARED |
| 67 | 71 |
| 68 return RUN_ALL_TESTS(); | 72 return RUN_ALL_TESTS(); |
| 69 } | 73 } |
| OLD | NEW |