OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 "../modules/video_coding", | 72 "../modules/video_coding", |
73 "../modules/video_processing", | 73 "../modules/video_processing", |
74 "../system_wrappers", | 74 "../system_wrappers", |
75 "../voice_engine", | 75 "../voice_engine", |
76 ] | 76 ] |
77 } | 77 } |
78 | 78 |
79 if (rtc_include_tests) { | 79 if (rtc_include_tests) { |
80 rtc_source_set("video_quality_test") { | 80 rtc_source_set("video_quality_test") { |
81 testonly = true | 81 testonly = true |
| 82 visibility = [ ":*" ] # Only targets in this file can depend on this. |
82 sources = [ | 83 sources = [ |
83 "video_quality_test.cc", | 84 "video_quality_test.cc", |
84 "video_quality_test.h", | 85 "video_quality_test.h", |
85 ] | 86 ] |
86 deps = [ | 87 deps = [ |
87 "../base:rtc_base_tests_utils", | 88 "../base:rtc_base_tests_utils", |
88 "../base:rtc_task_queue", | 89 "../base:rtc_task_queue", |
89 "../media:rtc_media_base", | 90 "../media:rtc_media_base", |
90 "../system_wrappers", | 91 "../system_wrappers", |
91 "//testing/gtest", | 92 "//testing/gtest", |
92 "//webrtc/test:test_renderer", | 93 "//webrtc/test:test_renderer", |
93 "//webrtc/test:video_test_common", | 94 "//webrtc/test:video_test_common", |
94 ] | 95 ] |
95 if (!build_with_chromium && is_clang) { | 96 if (!build_with_chromium && is_clang) { |
96 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
97 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 98 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
98 } | 99 } |
99 } | 100 } |
100 | 101 |
101 rtc_source_set("video_full_stack_tests") { | 102 rtc_source_set("video_full_stack_tests") { |
102 testonly = true | 103 testonly = true |
| 104 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 105 visibility = [ "//webrtc:webrtc_perf_tests" ] |
| 106 } |
103 sources = [ | 107 sources = [ |
104 "full_stack_tests.cc", | 108 "full_stack_tests.cc", |
105 ] | 109 ] |
106 deps = [ | 110 deps = [ |
107 ":video_quality_test", | 111 ":video_quality_test", |
108 "//testing/gtest", | 112 "//testing/gtest", |
109 "//webrtc/test:test_common", | 113 "//webrtc/test:test_common", |
110 ] | 114 ] |
111 if (!build_with_chromium && is_clang) { | 115 if (!build_with_chromium && is_clang) { |
112 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 116 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 ] | 181 ] |
178 if (!build_with_chromium && is_clang) { | 182 if (!build_with_chromium && is_clang) { |
179 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 183 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
180 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 184 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
181 } | 185 } |
182 } | 186 } |
183 | 187 |
184 # TODO(pbos): Rename test suite. | 188 # TODO(pbos): Rename test suite. |
185 rtc_source_set("video_tests") { | 189 rtc_source_set("video_tests") { |
186 testonly = true | 190 testonly = true |
| 191 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 192 visibility = [ "//webrtc:video_engine_tests" ] |
| 193 } |
187 defines = [] | 194 defines = [] |
188 sources = [ | 195 sources = [ |
189 "call_stats_unittest.cc", | 196 "call_stats_unittest.cc", |
190 "encoder_rtcp_feedback_unittest.cc", | 197 "encoder_rtcp_feedback_unittest.cc", |
191 "end_to_end_tests.cc", | 198 "end_to_end_tests.cc", |
192 "overuse_frame_detector_unittest.cc", | 199 "overuse_frame_detector_unittest.cc", |
193 "payload_router_unittest.cc", | 200 "payload_router_unittest.cc", |
194 "quality_threshold_unittest.cc", | 201 "quality_threshold_unittest.cc", |
195 "receive_statistics_proxy_unittest.cc", | 202 "receive_statistics_proxy_unittest.cc", |
196 "report_block_stats_unittest.cc", | 203 "report_block_stats_unittest.cc", |
(...skipping 14 matching lines...) Expand all Loading... |
211 ] | 218 ] |
212 if (!build_with_chromium && is_clang) { | 219 if (!build_with_chromium && is_clang) { |
213 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 220 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
214 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 221 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
215 } | 222 } |
216 if (rtc_use_h264) { | 223 if (rtc_use_h264) { |
217 defines += [ "WEBRTC_USE_H264" ] | 224 defines += [ "WEBRTC_USE_H264" ] |
218 } | 225 } |
219 } | 226 } |
220 } | 227 } |
OLD | NEW |