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..afb0e412a874414cf283c20b69ef45717d93280e 100644 |
--- a/talk/app/webrtc/webrtcsession_unittest.cc |
+++ b/talk/app/webrtc/webrtcsession_unittest.cc |
@@ -1005,12 +1005,20 @@ class WebRtcSessionTest : public testing::Test { |
private: |
void Verify(const rtc::scoped_refptr<FakeMetricsObserver> metrics_observer, |
const ExpectedBestConnection& expected) const { |
- EXPECT_EQ( |
- metrics_observer->GetCounter(webrtc::kBestConnections_IPv4), |
- expected.ipv4_count_); |
- EXPECT_EQ( |
- metrics_observer->GetCounter(webrtc::kBestConnections_IPv6), |
- expected.ipv6_count_); |
+ EXPECT_EQ(metrics_observer->GetCounter( |
+ webrtc::kPeerConnectionEnumCounter_AddressFamily, |
+ webrtc::kBestConnections_IPv4), |
+ expected.ipv4_count_); |
+ EXPECT_EQ(metrics_observer->GetCounter( |
+ webrtc::kPeerConnectionEnumCounter_AddressFamily, |
+ 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->GetCounter( |
+ webrtc::kPeerConnectionEnumCounter_IceCandidatePairTypeUdp, |
+ webrtc::kIceCandidatePair_Host_Host), |
+ 1); |
} |
}; |