OLD | NEW |
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 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 if (is_android) { | 10 if (is_android) { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 testonly = true | 215 testonly = true |
216 sources = [ | 216 sources = [ |
217 "test/mock_audio_mixer.h", | 217 "test/mock_audio_mixer.h", |
218 ] | 218 ] |
219 | 219 |
220 public_deps = [ | 220 public_deps = [ |
221 ":audio_mixer_api", | 221 ":audio_mixer_api", |
222 ] | 222 ] |
223 | 223 |
224 deps = [ | 224 deps = [ |
| 225 "../test:test_support", |
225 "//testing/gmock", | 226 "//testing/gmock", |
226 "//webrtc/test:test_support", | |
227 ] | 227 ] |
228 } | 228 } |
229 | 229 |
230 rtc_source_set("fakemetricsobserver") { | 230 rtc_source_set("fakemetricsobserver") { |
231 testonly = true | 231 testonly = true |
232 sources = [ | 232 sources = [ |
233 "fakemetricsobserver.cc", | 233 "fakemetricsobserver.cc", |
234 "fakemetricsobserver.h", | 234 "fakemetricsobserver.h", |
235 ] | 235 ] |
236 deps = [ | 236 deps = [ |
237 ":libjingle_peerconnection_api", | 237 ":libjingle_peerconnection_api", |
238 "../base:rtc_base_approved", | 238 "../base:rtc_base_approved", |
239 ] | 239 ] |
240 if (!build_with_chromium && is_clang) { | 240 if (!build_with_chromium && is_clang) { |
241 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 241 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
242 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 242 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
243 } | 243 } |
244 } | 244 } |
245 | 245 |
246 rtc_source_set("rtc_api_unittests") { | 246 rtc_source_set("rtc_api_unittests") { |
247 testonly = true | 247 testonly = true |
248 | 248 |
249 # Skip restricting visibility on mobile platforms since the tests on those | 249 # Skip restricting visibility on mobile platforms since the tests on those |
250 # gets additional generated targets which would require many lines here to | 250 # gets additional generated targets which would require many lines here to |
251 # cover (which would be confusing to read and hard to maintain). | 251 # cover (which would be confusing to read and hard to maintain). |
252 if (!is_android && !is_ios) { | 252 if (!is_android && !is_ios) { |
253 visibility = [ "//webrtc:rtc_unittests" ] | 253 visibility = [ "..:rtc_unittests" ] |
254 } | 254 } |
255 sources = [ | 255 sources = [ |
256 "ortc/mediadescription_unittest.cc", | 256 "ortc/mediadescription_unittest.cc", |
257 "ortc/sessiondescription_unittest.cc", | 257 "ortc/sessiondescription_unittest.cc", |
258 "rtcerror_unittest.cc", | 258 "rtcerror_unittest.cc", |
259 ] | 259 ] |
260 | 260 |
261 if (!build_with_chromium && is_clang) { | 261 if (!build_with_chromium && is_clang) { |
262 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 262 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
263 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 263 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
264 } | 264 } |
265 | 265 |
266 deps = [ | 266 deps = [ |
267 ":libjingle_peerconnection_api", | 267 ":libjingle_peerconnection_api", |
268 ":ortc_api", | 268 ":ortc_api", |
269 "//webrtc/test:test_support", | 269 "../test:test_support", |
270 ] | 270 ] |
271 } | 271 } |
272 } | 272 } |
OLD | NEW |