diff options
author | Artem Titov <titovartem@google.com> | 2020-05-11 19:51:42 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-11 18:47:03 +0000 |
commit | baa2c836baf8dc4331709557075c021d13f5fb1f (patch) | |
tree | c0e687a27ae7e4e71a6bebd202b451388ec58b0c /api | |
parent | bf46cfef2201acdc0c98c00c6e0e484ff4bf42da (diff) | |
download | webrtc-baa2c836baf8dc4331709557075c021d13f5fb1f.tar.gz |
Introduce ability to set peer name for PC level tests
Add peer's name to params and use it for logging and metrics naming
for whole peer related metrics.
Bug: webrtc:11479
Change-Id: Ia7e3fc4839c90a958d66910614515ac02a96e389
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/174752
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31215}
Diffstat (limited to 'api')
-rw-r--r-- | api/test/peerconnection_quality_test_fixture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/test/peerconnection_quality_test_fixture.h b/api/test/peerconnection_quality_test_fixture.h index 645dcb356e..99858fcd4d 100644 --- a/api/test/peerconnection_quality_test_fixture.h +++ b/api/test/peerconnection_quality_test_fixture.h @@ -253,6 +253,11 @@ class PeerConnectionE2EQualityTestFixture { public: virtual ~PeerConfigurer() = default; + // Sets peer name that will be used to report metrics related to this peer. + // If not set, some default name will be assigned. All names have to be + // unique. + virtual PeerConfigurer* SetName(absl::string_view name) = 0; + // The parameters of the following 9 methods will be passed to the // PeerConnectionFactoryInterface implementation that will be created for // this peer. |