
This is a reland of 1a2cc0acba6a66f89249455d8e5775849b56f755 Original change's description: > Reland "Replace the usage of MetricsObserverInterface by RTC_HISTOGRAM_*." > > This is a reland of 870bca1f418a1abf445169a638a61f9a649d557f > > Original change's description: > > Replace the usage of MetricsObserverInterface by RTC_HISTOGRAM_*. > > > > We now use RTC_HISTOGRAM_* macros in system_wrappers/include/metrics.h > > to report the metrics in pc/ and p2p/ that are currently been reported > > using MetricsObserverInterface. > > > > TBR=tommi@webrtc.org > > > > Bug: webrtc:9409 > > Change-Id: I47c9975402293c72250203fa1ec19eb1668766f6 > > Reviewed-on: https://webrtc-review.googlesource.com/83782 > > Commit-Queue: Qingsi Wang <qingsi@google.com> > > Reviewed-by: Harald Alvestrand <hta@webrtc.org> > > Reviewed-by: Taylor (left Google) <deadbeef@webrtc.org> > > Reviewed-by: Steve Anton <steveanton@webrtc.org> > > Cr-Commit-Position: refs/heads/master@{#23914} > > TBR=steveanton@webrtc.org,hta@webrtc.org,tommi@webrtc.org > > Bug: webrtc:9409 > Change-Id: I37fc95ced60dea25aa9b4f5ad44bdf7174c8bd5c > Reviewed-on: https://webrtc-review.googlesource.com/88060 > Reviewed-by: Qingsi Wang <qingsi@webrtc.org> > Commit-Queue: Qingsi Wang <qingsi@google.com> > Cr-Commit-Position: refs/heads/master@{#23919} TBR=steveanton@webrtc.org,tommi@webrtc.org Bug: webrtc:9409 Change-Id: Ib55f0b6c9bcb9d9585924a4dfac5cf643ff4d76b Reviewed-on: https://webrtc-review.googlesource.com/88343 Commit-Queue: Qingsi Wang <qingsi@google.com> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23957}
229 lines
6.1 KiB
Plaintext
229 lines
6.1 KiB
Plaintext
# 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.
|
|
|
|
import("../webrtc.gni")
|
|
|
|
group("p2p") {
|
|
public_deps = [
|
|
":libstunprober",
|
|
":rtc_p2p",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("rtc_p2p") {
|
|
visibility = [ "*" ]
|
|
sources = [
|
|
"base/asyncstuntcpsocket.cc",
|
|
"base/asyncstuntcpsocket.h",
|
|
"base/basicpacketsocketfactory.cc",
|
|
"base/basicpacketsocketfactory.h",
|
|
"base/candidatepairinterface.h",
|
|
"base/dtlstransport.cc",
|
|
"base/dtlstransport.h",
|
|
"base/dtlstransportinternal.cc",
|
|
"base/dtlstransportinternal.h",
|
|
"base/icetransportinternal.cc",
|
|
"base/icetransportinternal.h",
|
|
"base/p2pconstants.cc",
|
|
"base/p2pconstants.h",
|
|
"base/p2ptransportchannel.cc",
|
|
"base/p2ptransportchannel.h",
|
|
"base/packetlossestimator.cc",
|
|
"base/packetlossestimator.h",
|
|
"base/packetsocketfactory.cc",
|
|
"base/packetsocketfactory.h",
|
|
"base/packettransportinterface.h",
|
|
"base/packettransportinternal.cc",
|
|
"base/packettransportinternal.h",
|
|
"base/port.cc",
|
|
"base/port.h",
|
|
"base/portallocator.cc",
|
|
"base/portallocator.h",
|
|
"base/portinterface.cc",
|
|
"base/portinterface.h",
|
|
"base/pseudotcp.cc",
|
|
"base/pseudotcp.h",
|
|
"base/regatheringcontroller.cc",
|
|
"base/regatheringcontroller.h",
|
|
"base/relayport.cc",
|
|
"base/relayport.h",
|
|
"base/stun.cc",
|
|
"base/stun.h",
|
|
"base/stunport.cc",
|
|
"base/stunport.h",
|
|
"base/stunrequest.cc",
|
|
"base/stunrequest.h",
|
|
"base/tcpport.cc",
|
|
"base/tcpport.h",
|
|
"base/transport.h",
|
|
"base/transportdescription.cc",
|
|
"base/transportdescription.h",
|
|
"base/transportdescriptionfactory.cc",
|
|
"base/transportdescriptionfactory.h",
|
|
"base/transportfactoryinterface.h",
|
|
"base/transportinfo.h",
|
|
"base/turnport.cc",
|
|
"base/turnport.h",
|
|
"base/udpport.h",
|
|
"base/udptransport.cc",
|
|
"base/udptransport.h",
|
|
"client/basicportallocator.cc",
|
|
"client/basicportallocator.h",
|
|
"client/relayportfactoryinterface.h",
|
|
"client/turnportfactory.cc",
|
|
"client/turnportfactory.h",
|
|
]
|
|
|
|
defines = []
|
|
|
|
deps = [
|
|
"../api:libjingle_peerconnection_api",
|
|
"../api:ortc_api",
|
|
"../logging:ice_log",
|
|
"../rtc_base:base64",
|
|
"../rtc_base:checks",
|
|
"../rtc_base:rtc_base",
|
|
"../rtc_base:safe_minmax",
|
|
"../rtc_base:stringutils",
|
|
"../system_wrappers:field_trial_api",
|
|
"../system_wrappers:metrics_api",
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
|
|
if (build_with_chromium) {
|
|
if (is_nacl) {
|
|
deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
|
|
}
|
|
} else {
|
|
sources += [
|
|
"base/relayserver.cc",
|
|
"base/relayserver.h",
|
|
"base/stunserver.cc",
|
|
"base/stunserver.h",
|
|
"base/turnserver.cc",
|
|
"base/turnserver.h",
|
|
]
|
|
defines += [
|
|
"FEATURE_ENABLE_VOICEMAIL",
|
|
"FEATURE_ENABLE_PSTN",
|
|
]
|
|
}
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("p2p_test_utils") {
|
|
testonly = true
|
|
sources = [
|
|
"base/fakecandidatepair.h",
|
|
"base/fakedtlstransport.h",
|
|
"base/fakeicetransport.h",
|
|
"base/fakepackettransport.h",
|
|
"base/fakeportallocator.h",
|
|
"base/mockicetransport.h",
|
|
"base/testrelayserver.h",
|
|
"base/teststunserver.cc",
|
|
"base/teststunserver.h",
|
|
"base/testturncustomizer.h",
|
|
"base/testturnserver.h",
|
|
]
|
|
deps = [
|
|
":rtc_p2p",
|
|
"../api:libjingle_peerconnection_api",
|
|
"../api:ortc_api",
|
|
"../rtc_base:rtc_base",
|
|
"../rtc_base:rtc_base_approved",
|
|
"../rtc_base:rtc_base_tests_utils",
|
|
"../test:test_support",
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("rtc_p2p_unittests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"base/asyncstuntcpsocket_unittest.cc",
|
|
"base/dtlstransport_unittest.cc",
|
|
"base/p2ptransportchannel_unittest.cc",
|
|
"base/packetlossestimator_unittest.cc",
|
|
"base/port_unittest.cc",
|
|
"base/portallocator_unittest.cc",
|
|
"base/pseudotcp_unittest.cc",
|
|
"base/regatheringcontroller_unittest.cc",
|
|
"base/relayport_unittest.cc",
|
|
"base/relayserver_unittest.cc",
|
|
"base/stun_unittest.cc",
|
|
"base/stunport_unittest.cc",
|
|
"base/stunrequest_unittest.cc",
|
|
"base/stunserver_unittest.cc",
|
|
"base/tcpport_unittest.cc",
|
|
"base/transportdescriptionfactory_unittest.cc",
|
|
"base/turnport_unittest.cc",
|
|
"base/turnserver_unittest.cc",
|
|
"base/udptransport_unittest.cc",
|
|
"client/basicportallocator_unittest.cc",
|
|
]
|
|
deps = [
|
|
":p2p_test_utils",
|
|
":rtc_p2p",
|
|
"../api:ortc_api",
|
|
"../rtc_base:checks",
|
|
"../rtc_base:rtc_base",
|
|
"../rtc_base:rtc_base_approved",
|
|
"../rtc_base:rtc_base_tests_utils",
|
|
"../rtc_base:stringutils",
|
|
"../system_wrappers:metrics_default",
|
|
"../test:test_support",
|
|
"//testing/gtest",
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
]
|
|
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" ]
|
|
}
|
|
defines = [ "GTEST_RELATIVE_PATH" ]
|
|
}
|
|
}
|
|
|
|
rtc_static_library("libstunprober") {
|
|
visibility = [ "*" ]
|
|
sources = [
|
|
"stunprober/stunprober.cc",
|
|
"stunprober/stunprober.h",
|
|
]
|
|
|
|
deps = [
|
|
":rtc_p2p",
|
|
"..:webrtc_common",
|
|
"../:typedefs",
|
|
"../rtc_base:checks",
|
|
"../rtc_base:rtc_base",
|
|
]
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("libstunprober_unittests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"stunprober/stunprober_unittest.cc",
|
|
]
|
|
deps = [
|
|
":libstunprober",
|
|
":p2p_test_utils",
|
|
":rtc_p2p",
|
|
"../rtc_base:checks",
|
|
"../rtc_base:rtc_base",
|
|
"../rtc_base:rtc_base_tests_utils",
|
|
"//testing/gtest",
|
|
]
|
|
defines = [ "GTEST_RELATIVE_PATH" ]
|
|
}
|
|
}
|