Index: talk/app/webrtc/webrtcsession_unittest.cc |
diff --git a/talk/app/webrtc/webrtcsession_unittest.cc b/talk/app/webrtc/webrtcsession_unittest.cc |
index de10bc40a8b432ba79a248d4a55b112f29f0d2e0..e8bdf899ffb40c023fe19379585c44415a4ec596 100644 |
--- a/talk/app/webrtc/webrtcsession_unittest.cc |
+++ b/talk/app/webrtc/webrtcsession_unittest.cc |
@@ -1006,11 +1006,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); |
} |
}; |