Index: talk/app/webrtc/statscollector_unittest.cc |
diff --git a/talk/app/webrtc/statscollector_unittest.cc b/talk/app/webrtc/statscollector_unittest.cc |
index 9121c691b127c90647ba9f5b695d3a5b3c6352ad..c34fbcf71d049dff6dae09c71e6940e1be9fbdf9 100644 |
--- a/talk/app/webrtc/statscollector_unittest.cc |
+++ b/talk/app/webrtc/statscollector_unittest.cc |
@@ -683,7 +683,7 @@ class StatsCollectorTest : public testing::Test { |
// Fake stats to process. |
cricket::TransportChannelStats channel_stats; |
channel_stats.component = 1; |
- channel_stats.srtp_cipher = "the-srtp-cipher"; |
+ channel_stats.srtp_cipher = rtc::SRTP_AES128_CM_SHA1_80; |
channel_stats.ssl_cipher = TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA; |
cricket::TransportStats transport_stats; |
@@ -747,18 +747,18 @@ class StatsCollectorTest : public testing::Test { |
} |
// Check negotiated ciphers. |
- std::string dtls_cipher = ExtractStatsValue( |
- StatsReport::kStatsReportTypeComponent, |
- reports, |
- StatsReport::kStatsValueNameDtlsCipher); |
- EXPECT_EQ(rtc::SSLStreamAdapter::GetSslCipherSuiteName( |
+ std::string dtls_cipher_suite = |
+ ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, |
+ StatsReport::kStatsValueNameDtlsCipher); |
+ EXPECT_EQ(rtc::SSLStreamAdapter::SslCipherSuiteToName( |
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA), |
- dtls_cipher); |
+ dtls_cipher_suite); |
std::string srtp_cipher = ExtractStatsValue( |
StatsReport::kStatsReportTypeComponent, |
reports, |
StatsReport::kStatsValueNameSrtpCipher); |
- EXPECT_EQ("the-srtp-cipher", srtp_cipher); |
+ EXPECT_EQ(rtc::SrtpCryptoSuiteToName(rtc::SRTP_AES128_CM_SHA1_80), |
+ srtp_cipher); |
} |
cricket::FakeMediaEngine* media_engine_; |
@@ -1407,11 +1407,10 @@ TEST_F(StatsCollectorTest, NoTransport) { |
ASSERT_EQ(kNotFound, remote_certificate_id); |
// Check that the negotiated ciphers are absent. |
- std::string dtls_cipher = ExtractStatsValue( |
- StatsReport::kStatsReportTypeComponent, |
- reports, |
- StatsReport::kStatsValueNameDtlsCipher); |
- ASSERT_EQ(kNotFound, dtls_cipher); |
+ std::string dtls_cipher_suite = |
+ ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, |
+ StatsReport::kStatsValueNameDtlsCipher); |
+ ASSERT_EQ(kNotFound, dtls_cipher_suite); |
std::string srtp_cipher = ExtractStatsValue( |
StatsReport::kStatsReportTypeComponent, |
reports, |