Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: source/libvpx/test/test_libvpx.cc

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/test/test.mk ('k') | source/libvpx/test/test_vector_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « source/libvpx/test/test.mk ('k') | source/libvpx/test/test_vector_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698