| Index: webrtc/p2p/base/dtlstransportchannel_unittest.cc
|
| diff --git a/webrtc/p2p/base/dtlstransportchannel_unittest.cc b/webrtc/p2p/base/dtlstransportchannel_unittest.cc
|
| index 95696e222c500f54cd44b23df3a218b52cf19ad2..588ddeb00b324f132f242e0a28c397aa575249b2 100644
|
| --- a/webrtc/p2p/base/dtlstransportchannel_unittest.cc
|
| +++ b/webrtc/p2p/base/dtlstransportchannel_unittest.cc
|
| @@ -211,7 +211,7 @@ class DtlsTestClient : public sigslot::has_slots<> {
|
| channels_.begin(); it != channels_.end(); ++it) {
|
| std::string cipher;
|
|
|
| - bool rv = (*it)->GetSrtpCipher(&cipher);
|
| + bool rv = (*it)->GetSrtpCipherByRfcName(&cipher);
|
| if (negotiated_dtls_ && !expected_cipher.empty()) {
|
| ASSERT_TRUE(rv);
|
|
|
| @@ -222,13 +222,13 @@ class DtlsTestClient : public sigslot::has_slots<> {
|
| }
|
| }
|
|
|
| - void CheckSsl(const std::string& expected_cipher) {
|
| + void CheckSsl(uint16_t expected_cipher) {
|
| for (std::vector<cricket::DtlsTransportChannelWrapper*>::iterator it =
|
| channels_.begin(); it != channels_.end(); ++it) {
|
| - std::string cipher;
|
| + uint16_t cipher;
|
|
|
| bool rv = (*it)->GetSslCipher(&cipher);
|
| - if (negotiated_dtls_ && !expected_cipher.empty()) {
|
| + if (negotiated_dtls_ && !expected_cipher) {
|
| ASSERT_TRUE(rv);
|
|
|
| ASSERT_EQ(cipher, expected_cipher);
|
| @@ -462,10 +462,10 @@ class DtlsTransportChannelTest : public testing::Test {
|
| client1_.CheckSrtp("");
|
| client2_.CheckSrtp("");
|
| }
|
| - client1_.CheckSsl(
|
| - rtc::SSLStreamAdapter::GetDefaultSslCipher(ssl_expected_version_));
|
| - client2_.CheckSsl(
|
| - rtc::SSLStreamAdapter::GetDefaultSslCipher(ssl_expected_version_));
|
| + client1_.CheckSsl(rtc::SSLStreamAdapter::GetDefaultSslCipherForTest(
|
| + ssl_expected_version_, rtc::KT_DEFAULT));
|
| + client2_.CheckSsl(rtc::SSLStreamAdapter::GetDefaultSslCipherForTest(
|
| + ssl_expected_version_, rtc::KT_DEFAULT));
|
|
|
| return true;
|
| }
|
|
|