Index: talk/app/webrtc/statscollector_unittest.cc |
diff --git a/talk/app/webrtc/statscollector_unittest.cc b/talk/app/webrtc/statscollector_unittest.cc |
index 7c055f6566862c7f8af5dc77df1a12df7d0f1c4f..5e658680be50f965cb46e9135efb3de2ba1dc9d5 100644 |
--- a/talk/app/webrtc/statscollector_unittest.cc |
+++ b/talk/app/webrtc/statscollector_unittest.cc |
@@ -59,6 +59,11 @@ using webrtc::PeerConnectionInterface; |
using webrtc::StatsReport; |
using webrtc::StatsReports; |
+namespace { |
+// This value comes from openssl/tls1.h |
+const uint16_t TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 0xC014; |
+} // namespace |
+ |
namespace cricket { |
class ChannelManager; |
@@ -647,7 +652,7 @@ class StatsCollectorTest : public testing::Test { |
cricket::TransportChannelStats channel_stats; |
channel_stats.component = 1; |
channel_stats.srtp_cipher = "the-srtp-cipher"; |
- channel_stats.ssl_cipher = "the-ssl-cipher"; |
+ channel_stats.ssl_cipher = TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA; |
cricket::TransportStats transport_stats; |
transport_stats.transport_name = "audio"; |
@@ -716,7 +721,9 @@ class StatsCollectorTest : public testing::Test { |
StatsReport::kStatsReportTypeComponent, |
reports, |
StatsReport::kStatsValueNameDtlsCipher); |
- EXPECT_EQ("the-ssl-cipher", dtls_cipher); |
+ EXPECT_EQ(rtc::SSLStreamAdapter::GetSslCipherSuiteName( |
+ TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA), |
+ dtls_cipher); |
std::string srtp_cipher = ExtractStatsValue( |
StatsReport::kStatsReportTypeComponent, |
reports, |