Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: talk/app/webrtc/webrtcsession_unittest.cc

Issue 1277263002: Add instrumentation to track the IceEndpointType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: talk/app/webrtc/webrtcsession_unittest.cc
diff --git a/talk/app/webrtc/webrtcsession_unittest.cc b/talk/app/webrtc/webrtcsession_unittest.cc
index ecbd5074cd328941cc9333dddec9ac767c197e4b..e442cf158bb2ea22518a8b4eef9636750b5e17a8 100644
--- a/talk/app/webrtc/webrtcsession_unittest.cc
+++ b/talk/app/webrtc/webrtcsession_unittest.cc
@@ -1009,11 +1009,19 @@ class WebRtcSessionTest : public testing::Test {
void Verify(const rtc::scoped_refptr<FakeMetricsObserver> metrics_observer,
const ExpectedBestConnection& expected) const {
EXPECT_EQ(
- metrics_observer->GetCounter(webrtc::kBestConnections_IPv4),
+ metrics_observer->GetEnumCounter(webrtc::kEnumCounterAddressFamily,
+ webrtc::kBestConnections_IPv4),
expected.ipv4_count_);
EXPECT_EQ(
- metrics_observer->GetCounter(webrtc::kBestConnections_IPv6),
+ metrics_observer->GetEnumCounter(webrtc::kEnumCounterAddressFamily,
+ webrtc::kBestConnections_IPv6),
expected.ipv6_count_);
+ // This is used in the loopback call so there is only single host to host
+ // candidate pair.
+ EXPECT_EQ(metrics_observer->GetEnumCounter(
+ webrtc::kEnumCounterIceCandidatePairTypeUdp,
+ webrtc::kIceCandidatePairHostHost),
+ 1);
}
};

Powered by Google App Engine
This is Rietveld 408576698