mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-14 06:10:40 +01:00

If a WebRTC build target requires gmock it has to include test/gmock.h and just depend on //test:test_support. Unfortunately //testtest_support was a leaky abstraction because it wasn't propagating the correct -I compiler flag. To make everything work, all the targets that use gmock started also to depend on //testing/gmock (even if they were not including any gmock header directly). This CL makes //testtest_support propagate the include path up in the dependency chain so it is possible to remove unused dependencies. Note: all_dependent_configs should probably be used in the original gmock target. There is an ongoing discussion about it. This CL solves the problem on WebRTC side and it is forward compatible. TBR=phoglund@webrtc.org Bug: webrtc:8603 Change-Id: If08daf2ce9a6431a6e881a236743b4ec33b59ea7 Reviewed-on: https://webrtc-review.googlesource.com/44340 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Oleh Prypin <oprypin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21776}
43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
import("../../../webrtc.gni")
|
|
if (is_android) {
|
|
import("//build/config/android/config.gni")
|
|
import("//build/config/android/rules.gni")
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("audio_codecs_api_unittests") {
|
|
testonly = true
|
|
sources = [
|
|
"audio_decoder_factory_template_unittest.cc",
|
|
"audio_encoder_factory_template_unittest.cc",
|
|
]
|
|
deps = [
|
|
"..:audio_codecs_api",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../../../test:audio_codec_mocks",
|
|
"../../../test:test_support",
|
|
"../L16:audio_decoder_L16",
|
|
"../L16:audio_encoder_L16",
|
|
"../g711:audio_decoder_g711",
|
|
"../g711:audio_encoder_g711",
|
|
"../g722:audio_decoder_g722",
|
|
"../g722:audio_encoder_g722",
|
|
"../ilbc:audio_decoder_ilbc",
|
|
"../ilbc:audio_encoder_ilbc",
|
|
"../isac:audio_decoder_isac_fix",
|
|
"../isac:audio_decoder_isac_float",
|
|
"../isac:audio_encoder_isac_fix",
|
|
"../isac:audio_encoder_isac_float",
|
|
"../opus:audio_decoder_opus",
|
|
"../opus:audio_encoder_opus",
|
|
]
|
|
}
|
|
}
|