Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
# Copyright (c) 2016 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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../webrtc.gni")
|
2017-01-23 04:56:25 -08:00
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
|
|
|
|
|
group("pc") {
|
2017-12-06 11:23:19 +01:00
|
|
|
deps = [
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
":rtc_pc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("rtc_pc_config") {
|
2017-03-06 11:32:22 -08:00
|
|
|
defines = []
|
2016-12-22 10:53:38 -08:00
|
|
|
if (rtc_enable_sctp) {
|
|
|
|
|
defines += [ "HAVE_SCTP" ]
|
|
|
|
|
}
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
}
|
|
|
|
|
|
2017-06-15 12:52:32 -07:00
|
|
|
rtc_static_library("rtc_pc_base") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
defines = []
|
|
|
|
|
sources = [
|
|
|
|
|
"channel.cc",
|
|
|
|
|
"channel.h",
|
|
|
|
|
"channelmanager.cc",
|
|
|
|
|
"channelmanager.h",
|
2017-11-20 14:35:11 -08:00
|
|
|
"dtlssrtptransport.cc",
|
|
|
|
|
"dtlssrtptransport.h",
|
2017-03-06 00:14:10 -08:00
|
|
|
"externalhmac.cc",
|
|
|
|
|
"externalhmac.h",
|
2018-04-13 16:44:34 -07:00
|
|
|
"jseptransport.cc",
|
|
|
|
|
"jseptransport.h",
|
2018-02-22 15:26:27 -08:00
|
|
|
"jseptransportcontroller.cc",
|
|
|
|
|
"jseptransportcontroller.h",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
"mediasession.cc",
|
|
|
|
|
"mediasession.h",
|
|
|
|
|
"rtcpmuxfilter.cc",
|
|
|
|
|
"rtcpmuxfilter.h",
|
2017-11-27 14:30:09 -08:00
|
|
|
"rtpmediautils.cc",
|
|
|
|
|
"rtpmediautils.h",
|
2017-04-04 19:45:57 -07:00
|
|
|
"rtptransport.cc",
|
|
|
|
|
"rtptransport.h",
|
2017-07-19 13:38:02 -07:00
|
|
|
"rtptransportinternal.h",
|
2017-11-20 14:35:11 -08:00
|
|
|
"rtptransportinternaladapter.h",
|
2017-12-19 14:26:11 -08:00
|
|
|
"sessiondescription.cc",
|
|
|
|
|
"sessiondescription.h",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
"srtpfilter.cc",
|
|
|
|
|
"srtpfilter.h",
|
2017-07-07 14:26:25 -07:00
|
|
|
"srtpsession.cc",
|
|
|
|
|
"srtpsession.h",
|
2017-07-19 13:38:02 -07:00
|
|
|
"srtptransport.cc",
|
|
|
|
|
"srtptransport.h",
|
2018-02-22 15:26:27 -08:00
|
|
|
"transportstats.cc",
|
|
|
|
|
"transportstats.h",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-06-01 13:01:48 -07:00
|
|
|
"..:webrtc_common",
|
2018-03-07 20:02:26 +01:00
|
|
|
"../api:array_view",
|
2016-08-31 07:33:05 -07:00
|
|
|
"../api:call_api",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2017-09-05 08:43:13 -07:00
|
|
|
"../api:optional",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../api:ortc_api",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2018-04-13 16:44:34 -07:00
|
|
|
"../call:rtp_interfaces",
|
|
|
|
|
"../call:rtp_receiver",
|
2018-01-04 12:14:35 +01:00
|
|
|
"../common_video:common_video",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../media:rtc_data",
|
2017-06-21 01:02:59 -07:00
|
|
|
"../media:rtc_h264_profile_id",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../media:rtc_media_base",
|
2018-04-13 16:44:34 -07:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../p2p:rtc_p2p",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base",
|
|
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../rtc_base:stringutils",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_build_libsrtp) {
|
|
|
|
|
deps += [ "//third_party/libsrtp" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":rtc_pc_config" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
2016-06-13 00:08:24 -07:00
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
}
|
|
|
|
|
}
|
2016-06-13 00:08:24 -07:00
|
|
|
|
2017-06-15 12:52:32 -07:00
|
|
|
rtc_source_set("rtc_pc") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2018-04-24 16:39:05 +02:00
|
|
|
allow_poison = [
|
|
|
|
|
"audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
|
|
|
|
|
"software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
|
|
|
|
|
]
|
2017-06-15 12:52:32 -07:00
|
|
|
deps = [
|
2017-12-06 11:23:19 +01:00
|
|
|
":rtc_pc_base",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../media:rtc_audio_video",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-23 04:56:25 -08:00
|
|
|
config("libjingle_peerconnection_warnings_config") {
|
|
|
|
|
# GN orders flags on a target before flags from configs. The default config
|
|
|
|
|
# adds these flags so to cancel them out they need to come from a config and
|
|
|
|
|
# cannot be on the target directly.
|
|
|
|
|
if (!is_win && !is_clang) {
|
|
|
|
|
cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-15 12:52:32 -07:00
|
|
|
rtc_static_library("peerconnection") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-01-23 04:56:25 -08:00
|
|
|
cflags = []
|
|
|
|
|
sources = [
|
|
|
|
|
"audiotrack.cc",
|
|
|
|
|
"audiotrack.h",
|
|
|
|
|
"datachannel.cc",
|
|
|
|
|
"datachannel.h",
|
|
|
|
|
"dtmfsender.cc",
|
|
|
|
|
"dtmfsender.h",
|
2017-03-29 21:08:16 -07:00
|
|
|
"iceserverparsing.cc",
|
|
|
|
|
"iceserverparsing.h",
|
2017-01-23 04:56:25 -08:00
|
|
|
"jsepicecandidate.cc",
|
|
|
|
|
"jsepsessiondescription.cc",
|
|
|
|
|
"localaudiosource.cc",
|
|
|
|
|
"localaudiosource.h",
|
|
|
|
|
"mediastream.cc",
|
|
|
|
|
"mediastream.h",
|
|
|
|
|
"mediastreamobserver.cc",
|
|
|
|
|
"mediastreamobserver.h",
|
|
|
|
|
"mediastreamtrack.h",
|
|
|
|
|
"peerconnection.cc",
|
|
|
|
|
"peerconnection.h",
|
|
|
|
|
"peerconnectionfactory.cc",
|
|
|
|
|
"peerconnectionfactory.h",
|
2018-01-23 16:38:46 -08:00
|
|
|
"peerconnectioninternal.h",
|
2017-01-23 04:56:25 -08:00
|
|
|
"remoteaudiosource.cc",
|
|
|
|
|
"remoteaudiosource.h",
|
|
|
|
|
"rtcstatscollector.cc",
|
|
|
|
|
"rtcstatscollector.h",
|
2018-03-12 10:27:55 +01:00
|
|
|
"rtcstatstraversal.cc",
|
|
|
|
|
"rtcstatstraversal.h",
|
2017-01-23 04:56:25 -08:00
|
|
|
"rtpreceiver.cc",
|
|
|
|
|
"rtpreceiver.h",
|
|
|
|
|
"rtpsender.cc",
|
|
|
|
|
"rtpsender.h",
|
2017-11-13 10:44:53 -08:00
|
|
|
"rtptransceiver.cc",
|
|
|
|
|
"rtptransceiver.h",
|
2017-01-23 04:56:25 -08:00
|
|
|
"sctputils.cc",
|
|
|
|
|
"sctputils.h",
|
2017-10-06 10:14:03 -07:00
|
|
|
"sdputils.cc",
|
|
|
|
|
"sdputils.h",
|
2017-01-23 04:56:25 -08:00
|
|
|
"statscollector.cc",
|
|
|
|
|
"statscollector.h",
|
|
|
|
|
"streamcollection.h",
|
2017-02-11 19:07:31 -08:00
|
|
|
"trackmediainfomap.cc",
|
|
|
|
|
"trackmediainfomap.h",
|
2017-01-23 04:56:25 -08:00
|
|
|
"videocapturertracksource.cc",
|
|
|
|
|
"videocapturertracksource.h",
|
|
|
|
|
"videotrack.cc",
|
|
|
|
|
"videotrack.h",
|
|
|
|
|
"videotracksource.cc",
|
|
|
|
|
"videotracksource.h",
|
|
|
|
|
"webrtcsdp.cc",
|
|
|
|
|
"webrtcsdp.h",
|
|
|
|
|
"webrtcsessiondescriptionfactory.cc",
|
|
|
|
|
"webrtcsessiondescriptionfactory.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ ":libjingle_peerconnection_warnings_config" ]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-06-15 12:52:32 -07:00
|
|
|
":rtc_pc_base",
|
2017-06-01 13:01:48 -07:00
|
|
|
"..:webrtc_common",
|
2017-01-23 04:56:25 -08:00
|
|
|
"../api:call_api",
|
Revert "Revert "Enables PeerConnectionFactory using external fec controller""
This reverts commit 00733015fafbbc61ddc12dfdc88b21a9fcd9d122.
Reason for revert: The reason for a downstream test failure on the original commit and a workaround has been found. Solution is to keep a PeerConnectionFactory constructor implementation as the same as before.
Original change's description:
> Revert "Enables PeerConnectionFactory using external fec controller"
>
> This reverts commit 4f07bdb25567d8ef528311e0b50a62c61d543fc3.
>
> Reason for revert: Speculatively reverting, because downstream test is now hitting "PeerConnectionFactory.initialize was not called before creating a PeerConnectionFactory" error, even though it did call initialize. I don't see how any change in this CL could cause that, but it's the only CL on the blamelist, and it does modify PeerConnectionFactory.java
>
> Original change's description:
> > Enables PeerConnectionFactory using external fec controller
> >
> > Bug: webrtc:8799
> > Change-Id: Ieb2cf6163b9a83844ab9ed4822b4a7f1db4c24b8
> > Reviewed-on: https://webrtc-review.googlesource.com/43961
> > Commit-Queue: Ying Wang <yinwa@webrtc.org>
> > Reviewed-by: Stefan Holmer <stefan@webrtc.org>
> > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
> > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#22038}
>
> TBR=sakal@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org,stefan@webrtc.org,yinwa@webrtc.org
>
> Change-Id: I95868c35d6f9973e0ebf563814cd71d0fcbd433d
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:8799
> Reviewed-on: https://webrtc-review.googlesource.com/54080
> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
> Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#22040}
TBR=deadbeef@webrtc.org,sakal@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org,stefan@webrtc.org,yinwa@webrtc.org
Bug: webrtc:8799
Change-Id: If9f3292bfcc739782967530c49f006d0abbc38a8
Reviewed-on: https://webrtc-review.googlesource.com/55400
Commit-Queue: Ying Wang <yinwa@webrtc.org>
Reviewed-by: Ying Wang <yinwa@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22100}
2018-02-20 12:50:27 +01:00
|
|
|
"../api:fec_controller_api",
|
2017-12-06 11:23:19 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2017-09-05 08:43:13 -07:00
|
|
|
"../api:optional",
|
2017-01-23 04:56:25 -08:00
|
|
|
"../api:rtc_stats_api",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2017-04-05 03:02:20 -07:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../call:call_interfaces",
|
2018-01-04 12:14:35 +01:00
|
|
|
"../common_video:common_video",
|
2018-01-30 17:13:09 -08:00
|
|
|
"../logging:ice_log",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../logging:rtc_event_log_api",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_event_log_impl_output",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../media:rtc_data",
|
|
|
|
|
"../media:rtc_media_base",
|
2018-05-18 18:05:10 +02:00
|
|
|
"../modules/congestion_controller/bbr",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../p2p:rtc_p2p",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../rtc_base:stringutils",
|
2018-05-18 18:05:10 +02:00
|
|
|
"../rtc_base/experiments:congestion_controller_experiment",
|
2017-01-23 04:56:25 -08:00
|
|
|
"../stats",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../system_wrappers",
|
|
|
|
|
"../system_wrappers:field_trial_api",
|
2017-01-23 04:56:25 -08:00
|
|
|
]
|
2017-06-15 12:52:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This target implements CreatePeerConnectionFactory methods that will create a
|
|
|
|
|
# PeerConnection will full functionality (audio, video and data). Applications
|
|
|
|
|
# that wish to reduce their binary size by ommitting functionality they don't
|
|
|
|
|
# need should use CreateModularCreatePeerConnectionFactory instead, using the
|
|
|
|
|
# "peerconnection" build target and other targets specific to their
|
|
|
|
|
# requrements. See comment in peerconnectionfactoryinterface.h.
|
2017-06-22 01:28:59 -07:00
|
|
|
rtc_static_library("create_pc_factory") {
|
2017-06-15 12:52:32 -07:00
|
|
|
sources = [
|
|
|
|
|
"createpeerconnectionfactory.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-02-14 12:20:13 +01:00
|
|
|
"../api:callfactory_api",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2018-02-16 13:43:49 +01:00
|
|
|
"../api/audio:audio_mixer_api",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2017-09-15 19:02:47 +02:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../call",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../logging:rtc_event_log_api",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_event_log_impl_base",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../media:rtc_audio_video",
|
2017-11-20 18:41:50 +01:00
|
|
|
"../media:rtc_media_base",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../modules/audio_device:audio_device",
|
2017-06-29 08:32:09 -07:00
|
|
|
"../modules/audio_processing:audio_processing",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-06-15 12:52:32 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ ":libjingle_peerconnection_warnings_config" ]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("libjingle_peerconnection") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2018-04-24 16:39:05 +02:00
|
|
|
allow_poison = [
|
|
|
|
|
"audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
|
|
|
|
|
"software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
|
|
|
|
|
]
|
2017-12-06 11:23:19 +01:00
|
|
|
deps = [
|
2017-06-15 12:52:32 -07:00
|
|
|
":create_pc_factory",
|
|
|
|
|
":peerconnection",
|
|
|
|
|
"../api:libjingle_peerconnection_api",
|
|
|
|
|
]
|
2017-01-23 04:56:25 -08:00
|
|
|
}
|
|
|
|
|
|
2016-06-13 00:08:24 -07:00
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
config("rtc_pc_unittests_config") {
|
|
|
|
|
# GN orders flags on a target before flags from configs. The default config
|
|
|
|
|
# adds -Wall, and this flag have to be after -Wall -- so they need to
|
|
|
|
|
# come from a config and can't be on the target directly.
|
|
|
|
|
if (!is_win && !is_clang) {
|
|
|
|
|
cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("rtc_pc_unittests") {
|
2016-06-13 00:08:24 -07:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"channel_unittest.cc",
|
|
|
|
|
"channelmanager_unittest.cc",
|
2017-11-20 14:35:11 -08:00
|
|
|
"dtlssrtptransport_unittest.cc",
|
2018-04-13 16:44:34 -07:00
|
|
|
"jseptransport_unittest.cc",
|
2018-02-22 15:26:27 -08:00
|
|
|
"jseptransportcontroller_unittest.cc",
|
2016-06-13 00:08:24 -07:00
|
|
|
"mediasession_unittest.cc",
|
|
|
|
|
"rtcpmuxfilter_unittest.cc",
|
2017-04-24 16:54:35 -07:00
|
|
|
"rtptransport_unittest.cc",
|
2017-07-19 13:38:02 -07:00
|
|
|
"rtptransporttestutil.h",
|
2016-06-13 00:08:24 -07:00
|
|
|
"srtpfilter_unittest.cc",
|
2017-07-07 14:26:25 -07:00
|
|
|
"srtpsession_unittest.cc",
|
|
|
|
|
"srtptestutil.h",
|
2017-07-19 13:38:02 -07:00
|
|
|
"srtptransport_unittest.cc",
|
2016-06-13 00:08:24 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
include_dirs = [ "//third_party/libsrtp/srtp" ]
|
|
|
|
|
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":rtc_pc_unittests_config" ]
|
2016-06-13 00:08:24 -07:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
2016-06-13 00:08:24 -07:00
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-13 00:08:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
libs = [ "strmiids.lib" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-01-23 04:56:25 -08:00
|
|
|
":libjingle_peerconnection",
|
2017-09-29 10:51:43 -07:00
|
|
|
":pc_test_utils",
|
2016-06-13 00:08:24 -07:00
|
|
|
":rtc_pc",
|
2017-12-06 11:23:19 +01:00
|
|
|
":rtc_pc_base",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../api:array_view",
|
2018-03-19 17:41:42 -07:00
|
|
|
"../api:fakemetricsobserver",
|
2017-12-06 11:23:19 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2018-04-13 16:44:34 -07:00
|
|
|
"../call:rtp_interfaces",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../logging:rtc_event_log_api",
|
|
|
|
|
"../media:rtc_media_base",
|
2017-04-25 00:35:35 -07:00
|
|
|
"../media:rtc_media_tests_utils",
|
2018-04-13 16:44:34 -07:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../p2p:p2p_test_utils",
|
|
|
|
|
"../p2p:rtc_p2p",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_base_tests_main",
|
|
|
|
|
"../rtc_base:rtc_base_tests_utils",
|
2016-06-13 00:08:24 -07:00
|
|
|
"../system_wrappers:metrics_default",
|
2018-01-17 19:57:24 +00:00
|
|
|
"../system_wrappers:runtime_enabled_features_default",
|
2017-07-19 13:38:02 -07:00
|
|
|
"../test:test_support",
|
2016-06-13 00:08:24 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_build_libsrtp) {
|
|
|
|
|
deps += [ "//third_party/libsrtp" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-23 04:56:25 -08:00
|
|
|
|
2017-02-25 18:15:09 -08:00
|
|
|
rtc_source_set("pc_test_utils") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/fakeaudiocapturemodule.cc",
|
|
|
|
|
"test/fakeaudiocapturemodule.h",
|
|
|
|
|
"test/fakedatachannelprovider.h",
|
2018-01-24 15:29:17 -08:00
|
|
|
"test/fakepeerconnectionbase.h",
|
2018-01-26 10:25:53 -08:00
|
|
|
"test/fakepeerconnectionforstats.h",
|
2018-03-21 09:20:21 +01:00
|
|
|
"test/fakeperiodicvideosource.h",
|
2018-05-17 09:16:41 +02:00
|
|
|
"test/fakeperiodicvideotracksource.h",
|
2017-02-25 18:15:09 -08:00
|
|
|
"test/fakertccertificategenerator.h",
|
2017-10-23 11:41:54 -07:00
|
|
|
"test/fakesctptransport.h",
|
2017-02-25 18:15:09 -08:00
|
|
|
"test/fakevideotrackrenderer.h",
|
|
|
|
|
"test/fakevideotracksource.h",
|
|
|
|
|
"test/mock_datachannel.h",
|
|
|
|
|
"test/mock_peerconnection.h",
|
2018-02-15 15:19:50 -08:00
|
|
|
"test/mock_rtpreceiverinternal.h",
|
|
|
|
|
"test/mock_rtpsenderinternal.h",
|
2017-02-25 18:15:09 -08:00
|
|
|
"test/mockpeerconnectionobservers.h",
|
|
|
|
|
"test/peerconnectiontestwrapper.cc",
|
|
|
|
|
"test/peerconnectiontestwrapper.h",
|
|
|
|
|
"test/rtcstatsobtainer.h",
|
|
|
|
|
"test/testsdpstrings.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":libjingle_peerconnection",
|
2017-12-06 11:23:19 +01:00
|
|
|
":peerconnection",
|
2017-09-29 10:51:43 -07:00
|
|
|
":rtc_pc_base",
|
2017-06-01 13:01:48 -07:00
|
|
|
"..:webrtc_common",
|
2018-01-11 10:13:56 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../api:libjingle_peerconnection_test_api",
|
|
|
|
|
"../api:rtc_stats_api",
|
2018-05-21 14:09:31 +02:00
|
|
|
"../api/video:video_frame",
|
2018-05-03 11:28:29 +02:00
|
|
|
"../api/video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_encoder_factory",
|
2017-06-15 12:52:32 -07:00
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../logging:rtc_event_log_api",
|
2018-01-11 17:07:30 +01:00
|
|
|
"../media:rtc_data",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../media:rtc_media",
|
2017-11-20 18:41:50 +01:00
|
|
|
"../media:rtc_media_base",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../media:rtc_media_tests_utils",
|
|
|
|
|
"../modules/audio_device:audio_device",
|
2018-05-03 11:28:29 +02:00
|
|
|
"../modules/audio_processing:audio_processing",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../p2p:p2p_test_utils",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_base_tests_utils",
|
2018-03-19 11:12:48 +01:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-06-01 13:01:48 -07:00
|
|
|
"../test:test_support",
|
2017-02-25 18:15:09 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-23 04:56:25 -08:00
|
|
|
config("peerconnection_unittests_config") {
|
|
|
|
|
# The warnings below are enabled by default. Since GN orders compiler flags
|
|
|
|
|
# for a target before flags from configs, the only way to disable such
|
|
|
|
|
# warnings is by having them in a separate config, loaded from the target.
|
|
|
|
|
# TODO(kjellander): Make the code compile without disabling these flags.
|
|
|
|
|
# See https://bugs.webrtc.org/3307.
|
|
|
|
|
if (is_clang && is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
|
|
|
|
|
# for -Wno-sign-compare
|
|
|
|
|
"-Wno-sign-compare",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!is_win) {
|
|
|
|
|
cflags = [ "-Wno-sign-compare" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_test("peerconnection_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"datachannel_unittest.cc",
|
|
|
|
|
"dtmfsender_unittest.cc",
|
2017-03-29 21:08:16 -07:00
|
|
|
"iceserverparsing_unittest.cc",
|
2017-01-23 04:56:25 -08:00
|
|
|
"jsepsessiondescription_unittest.cc",
|
|
|
|
|
"localaudiosource_unittest.cc",
|
|
|
|
|
"mediaconstraintsinterface_unittest.cc",
|
|
|
|
|
"mediastream_unittest.cc",
|
2017-10-23 09:39:20 -07:00
|
|
|
"peerconnection_bundle_unittest.cc",
|
2017-10-06 11:20:31 -07:00
|
|
|
"peerconnection_crypto_unittest.cc",
|
2017-10-23 11:41:54 -07:00
|
|
|
"peerconnection_datachannel_unittest.cc",
|
2017-10-13 11:13:35 -07:00
|
|
|
"peerconnection_ice_unittest.cc",
|
2017-03-29 21:08:16 -07:00
|
|
|
"peerconnection_integrationtest.cc",
|
2017-12-22 16:02:54 -08:00
|
|
|
"peerconnection_jsep_unittest.cc",
|
2017-10-20 15:30:51 -07:00
|
|
|
"peerconnection_media_unittest.cc",
|
Reland "Added PeerConnectionObserver::OnRemoveTrack."
This reverts commit 6c0c55c31817ecfa32409424495eb68b31828c40.
Reason for revert:
Fixed the flake.
Original change's description:
> Revert "Added PeerConnectionObserver::OnRemoveTrack."
>
> This reverts commit ba97ba7af917d4152f5f3363aba1c1561c6673dc.
>
> Reason for revert: The new tests have caused several test failures on the test bots; the method FakeAudioMediaStreamTrack:GetSignalLevel, which is not supposed to be called is sometimes called anyway.
>
> Original change's description:
> > Added PeerConnectionObserver::OnRemoveTrack.
> >
> > This corresponds to processing the removal of a remote track step of
> > the spec, with processing the addition of a remote track already
> > covered by OnAddTrack.
> > https://w3c.github.io/webrtc-pc/#processing-remote-mediastreamtracks
> >
> > Bug: webrtc:8260, webrtc:8315
> > Change-Id: Ica8be92369733eb3cf1397fb60385d45a9b58700
> > Reviewed-on: https://webrtc-review.googlesource.com/4722
> > Commit-Queue: Henrik Boström <hbos@webrtc.org>
> > Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
> > Reviewed-by: Steve Anton <steveanton@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#20214}
>
> TBR=steveanton@webrtc.org,deadbeef@webrtc.org,hbos@webrtc.org
>
> Change-Id: Id2d9533e27227254769b4280a8ff10a47313e714
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:8260, webrtc:8315
> Reviewed-on: https://webrtc-review.googlesource.com/7940
> Reviewed-by: Alex Loiko <aleloi@webrtc.org>
> Commit-Queue: Alex Loiko <aleloi@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#20218}
TBR=steveanton@webrtc.org,deadbeef@webrtc.org,aleloi@webrtc.org,hbos@webrtc.org
Change-Id: Iab7500bebf98535754b102874259de43831fff6b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: webrtc:8260, webrtc:8315
Reviewed-on: https://webrtc-review.googlesource.com/8180
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20227}
2017-10-10 10:05:16 -07:00
|
|
|
"peerconnection_rtp_unittest.cc",
|
2017-10-20 15:30:51 -07:00
|
|
|
"peerconnection_signaling_unittest.cc",
|
2017-01-23 04:56:25 -08:00
|
|
|
"peerconnectionendtoend_unittest.cc",
|
|
|
|
|
"peerconnectionfactory_unittest.cc",
|
|
|
|
|
"peerconnectioninterface_unittest.cc",
|
2017-09-26 16:20:19 -07:00
|
|
|
"peerconnectionwrapper.cc",
|
|
|
|
|
"peerconnectionwrapper.h",
|
2017-01-23 04:56:25 -08:00
|
|
|
"proxy_unittest.cc",
|
|
|
|
|
"rtcstats_integrationtest.cc",
|
|
|
|
|
"rtcstatscollector_unittest.cc",
|
2018-03-12 10:27:55 +01:00
|
|
|
"rtcstatstraversal_unittest.cc",
|
2017-11-27 14:30:09 -08:00
|
|
|
"rtpmediautils_unittest.cc",
|
2017-01-23 04:56:25 -08:00
|
|
|
"rtpsenderreceiver_unittest.cc",
|
|
|
|
|
"sctputils_unittest.cc",
|
|
|
|
|
"statscollector_unittest.cc",
|
|
|
|
|
"test/fakeaudiocapturemodule_unittest.cc",
|
|
|
|
|
"test/testsdpstrings.h",
|
2017-02-11 19:07:31 -08:00
|
|
|
"trackmediainfomap_unittest.cc",
|
2017-01-23 04:56:25 -08:00
|
|
|
"videocapturertracksource_unittest.cc",
|
|
|
|
|
"videotrack_unittest.cc",
|
|
|
|
|
"webrtcsdp_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_sctp) {
|
|
|
|
|
defines = [ "HAVE_SCTP" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
configs += [ ":peerconnection_unittests_config" ]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
"/wd4245", # conversion from int to size_t, signed/unsigned mismatch.
|
|
|
|
|
"/wd4389", # signed/unsigned mismatch.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-06 11:23:19 +01:00
|
|
|
deps = [
|
|
|
|
|
":peerconnection",
|
|
|
|
|
":rtc_pc_base",
|
2018-01-11 10:13:56 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2017-12-19 10:32:11 +01:00
|
|
|
"../api:mock_rtp",
|
2018-05-08 14:52:22 +02:00
|
|
|
"../api/units:time_delta",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../rtc_base:stringutils",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-12-06 11:23:19 +01:00
|
|
|
]
|
2017-01-23 04:56:25 -08:00
|
|
|
if (is_android) {
|
2017-09-15 09:04:28 +02:00
|
|
|
deps += [ ":android_black_magic" ]
|
2017-01-23 04:56:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
|
":libjingle_peerconnection",
|
2017-02-25 18:15:09 -08:00
|
|
|
":pc_test_utils",
|
2017-01-23 04:56:25 -08:00
|
|
|
"..:webrtc_common",
|
2018-02-14 12:20:13 +01:00
|
|
|
"../api:callfactory_api",
|
2017-01-23 04:56:25 -08:00
|
|
|
"../api:fakemetricsobserver",
|
2017-09-15 09:04:28 +02:00
|
|
|
"../api:libjingle_peerconnection_test_api",
|
Reland "SetRemoteDescriptionObserverInterface added."
Description for changes from the original CL:
Calling legacy SRD, implemented using
SetRemoteDescriptionObserverAdapter wrapping the old observer, was
meant to have the exact same behavior as the legacy SRD implementation
which invokes the callbacks in a Post.
However, in the CL that landed and got reverted (PS1), the Adapter had
its own message handler, and callbacks would be invoked even if the PC
was destroyed.
In PS2 I've changed the Adapter to use the PeerConnection's message
handler. If the PC is destroyed, the callback will not be invoked.
This gives identical behavior to before this CL, and the legacy
behavior is covered by a new unittest.
I changed the adapter to be an implementation detail of
peerconnection.cc, therefor some stuff was moved, and the only tests
covering this is now in peerconnection_rtp_unittest.cc.
This is a reland of 6c7ec32bd63ab2b45d4d83ae1de817ee946b4d72
Original change's description:
> SetRemoteDescriptionObserverInterface added.
>
> The new observer replaced SetSessionDescriptionObserver for
> SetRemoteDescription. Unlike SetSessionDescriptionObserver,
> SetRemoteDescriptionObserverInterface is invoked synchronously so
> that the you can rely on the state of the PeerConnection to represent
> the result of the SetRemoteDescription call in the callback.
>
> The new observer succeeds or fails with an RTCError.
>
> This deprecates the need for PeerConnectionObserver::OnAdd/RemoveTrack
> and SetSessionDescriptionObserver, with the benefit that all media
> object changes can be processed in a single callback by the application
> in a synchronous callback. This will help Chromium keep objects in-sync
> across layers and threads in a non-racy and straight-forward way, see
> design doc (Proposal 2):
> https://docs.google.com/a/google.com/document/d/1-cDDC82mgU5zrHacfFz720p3xwRtuBkOPSRchh07Ho0/edit?usp=sharing
>
> An adapter for SetSessionDescriptionObserver is added to allow calling
> the old SetRemoteDescription signature and get the old behavior
> (OnSuccess/OnFailure callback in a Post) until third parties switch.
>
> Bug: webrtc:8473
> Change-Id: I3d4eb60da6dd34615f2c9f384aeaf4634e648c99
> Reviewed-on: https://webrtc-review.googlesource.com/17523
> Commit-Queue: Henrik Boström <hbos@webrtc.org>
> Reviewed-by: Peter Thatcher <pthatcher@webrtc.org>
> Reviewed-by: Guido Urdaneta <guidou@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#20841}
TBR=pthatcher@webrtc.org
Bug: webrtc:8473
Change-Id: If2b1a1929663b0e77fcc9c2ebeef043e6f73adf5
Reviewed-on: https://webrtc-review.googlesource.com/25640
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Guido Urdaneta <guidou@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20854}
2017-11-23 17:48:32 +01:00
|
|
|
"../api:optional",
|
2017-09-15 09:04:28 +02:00
|
|
|
"../api:rtc_stats_api",
|
2017-10-10 23:17:17 +02:00
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2017-09-15 09:04:28 +02:00
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_encoder_factory",
|
2017-10-10 23:17:17 +02:00
|
|
|
"../api/audio_codecs/L16:audio_decoder_L16",
|
|
|
|
|
"../api/audio_codecs/L16:audio_encoder_L16",
|
2018-05-03 11:28:29 +02:00
|
|
|
"../api/video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_encoder_factory",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
2017-10-20 15:30:51 -07:00
|
|
|
"../call:call_interfaces",
|
2017-10-13 16:29:40 +02:00
|
|
|
"../logging:rtc_event_log_api",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_event_log_impl_base",
|
|
|
|
|
"../logging:rtc_event_log_impl_output",
|
2017-09-15 09:04:28 +02:00
|
|
|
"../media:rtc_audio_video",
|
|
|
|
|
"../media:rtc_data", # TODO(phoglund): AFAIK only used for one sctp constant.
|
|
|
|
|
"../media:rtc_media_base",
|
2017-04-25 00:35:35 -07:00
|
|
|
"../media:rtc_media_tests_utils",
|
2017-09-15 09:04:28 +02:00
|
|
|
"../modules/audio_processing:audio_processing",
|
|
|
|
|
"../modules/utility:utility",
|
|
|
|
|
"../p2p:p2p_test_utils",
|
|
|
|
|
"../p2p:rtc_p2p",
|
2017-01-23 04:56:25 -08:00
|
|
|
"../pc:rtc_pc",
|
Reland "Added PeerConnectionObserver::OnRemoveTrack."
This reverts commit 6c0c55c31817ecfa32409424495eb68b31828c40.
Reason for revert:
Fixed the flake.
Original change's description:
> Revert "Added PeerConnectionObserver::OnRemoveTrack."
>
> This reverts commit ba97ba7af917d4152f5f3363aba1c1561c6673dc.
>
> Reason for revert: The new tests have caused several test failures on the test bots; the method FakeAudioMediaStreamTrack:GetSignalLevel, which is not supposed to be called is sometimes called anyway.
>
> Original change's description:
> > Added PeerConnectionObserver::OnRemoveTrack.
> >
> > This corresponds to processing the removal of a remote track step of
> > the spec, with processing the addition of a remote track already
> > covered by OnAddTrack.
> > https://w3c.github.io/webrtc-pc/#processing-remote-mediastreamtracks
> >
> > Bug: webrtc:8260, webrtc:8315
> > Change-Id: Ica8be92369733eb3cf1397fb60385d45a9b58700
> > Reviewed-on: https://webrtc-review.googlesource.com/4722
> > Commit-Queue: Henrik Boström <hbos@webrtc.org>
> > Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
> > Reviewed-by: Steve Anton <steveanton@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#20214}
>
> TBR=steveanton@webrtc.org,deadbeef@webrtc.org,hbos@webrtc.org
>
> Change-Id: Id2d9533e27227254769b4280a8ff10a47313e714
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:8260, webrtc:8315
> Reviewed-on: https://webrtc-review.googlesource.com/7940
> Reviewed-by: Alex Loiko <aleloi@webrtc.org>
> Commit-Queue: Alex Loiko <aleloi@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#20218}
TBR=steveanton@webrtc.org,deadbeef@webrtc.org,aleloi@webrtc.org,hbos@webrtc.org
Change-Id: Iab7500bebf98535754b102874259de43831fff6b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: webrtc:8260, webrtc:8315
Reviewed-on: https://webrtc-review.googlesource.com/8180
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20227}
2017-10-10 10:05:16 -07:00
|
|
|
"../rtc_base:rtc_base",
|
2017-09-15 09:04:28 +02:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_tests_main",
|
|
|
|
|
"../rtc_base:rtc_base_tests_utils",
|
2018-03-19 11:12:48 +01:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-01-23 04:56:25 -08:00
|
|
|
"../system_wrappers:metrics_default",
|
2018-01-17 19:57:24 +00:00
|
|
|
"../system_wrappers:runtime_enabled_features_default",
|
2017-06-14 03:31:17 -07:00
|
|
|
"../test:audio_codec_mocks",
|
2017-09-15 09:04:28 +02:00
|
|
|
"../test:test_support",
|
2017-01-23 04:56:25 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
2017-09-15 09:04:28 +02:00
|
|
|
deps += [
|
|
|
|
|
"//testing/android/native_test:native_test_support",
|
|
|
|
|
|
|
|
|
|
# We need to depend on this one directly, or classloads will fail for
|
|
|
|
|
# the voice engine BuildInfo, for instance.
|
|
|
|
|
"../sdk/android:libjingle_peerconnection_java",
|
|
|
|
|
]
|
2017-01-23 04:56:25 -08:00
|
|
|
|
|
|
|
|
shard_timeout = 900
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-15 09:04:28 +02:00
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
rtc_source_set("android_black_magic") {
|
|
|
|
|
# The android code uses hacky includes to chromium-base and the ssl code;
|
|
|
|
|
# having this in a separate target enables us to keep the peerconnection
|
|
|
|
|
# unit tests clean.
|
|
|
|
|
check_includes = false
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/androidtestinitializer.cc",
|
|
|
|
|
"test/androidtestinitializer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../sdk/android:libjingle_peerconnection_jni",
|
|
|
|
|
"//testing/android/native_test:native_test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-13 00:08:24 -07:00
|
|
|
}
|