Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 using testing::_; | 52 using testing::_; |
| 53 using testing::DoAll; | 53 using testing::DoAll; |
| 54 using testing::Field; | 54 using testing::Field; |
| 55 using testing::Return; | 55 using testing::Return; |
| 56 using testing::ReturnNull; | 56 using testing::ReturnNull; |
| 57 using testing::SetArgPointee; | 57 using testing::SetArgPointee; |
| 58 using webrtc::PeerConnectionInterface; | 58 using webrtc::PeerConnectionInterface; |
| 59 using webrtc::StatsReport; | 59 using webrtc::StatsReport; |
| 60 using webrtc::StatsReports; | 60 using webrtc::StatsReports; |
| 61 | 61 |
| 62 namespace { | |
| 63 const uint16_t TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 0xC014; | |
|
pthatcher1
2015/09/30 18:39:35
Can you put a comment explaining where the value c
guoweis_webrtc
2015/09/30 20:14:21
Done.
| |
| 64 } // namespace | |
| 65 | |
| 62 namespace cricket { | 66 namespace cricket { |
| 63 | 67 |
| 64 class ChannelManager; | 68 class ChannelManager; |
| 65 | 69 |
| 66 } // namespace cricket | 70 } // namespace cricket |
| 67 | 71 |
| 68 namespace webrtc { | 72 namespace webrtc { |
| 69 | 73 |
| 70 // Error return values | 74 // Error return values |
| 71 const char kNotFound[] = "NOT FOUND"; | 75 const char kNotFound[] = "NOT FOUND"; |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 640 const rtc::FakeSSLCertificate& remote_cert, | 644 const rtc::FakeSSLCertificate& remote_cert, |
| 641 const std::vector<std::string>& remote_ders) { | 645 const std::vector<std::string>& remote_ders) { |
| 642 StatsCollectorForTest stats(&session_); | 646 StatsCollectorForTest stats(&session_); |
| 643 | 647 |
| 644 StatsReports reports; // returned values. | 648 StatsReports reports; // returned values. |
| 645 | 649 |
| 646 // Fake stats to process. | 650 // Fake stats to process. |
| 647 cricket::TransportChannelStats channel_stats; | 651 cricket::TransportChannelStats channel_stats; |
| 648 channel_stats.component = 1; | 652 channel_stats.component = 1; |
| 649 channel_stats.srtp_cipher = "the-srtp-cipher"; | 653 channel_stats.srtp_cipher = "the-srtp-cipher"; |
| 650 channel_stats.ssl_cipher = "the-ssl-cipher"; | 654 channel_stats.ssl_cipher = TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA; |
| 651 | 655 |
| 652 cricket::TransportStats transport_stats; | 656 cricket::TransportStats transport_stats; |
| 653 transport_stats.transport_name = "audio"; | 657 transport_stats.transport_name = "audio"; |
| 654 transport_stats.channel_stats.push_back(channel_stats); | 658 transport_stats.channel_stats.push_back(channel_stats); |
| 655 | 659 |
| 656 cricket::SessionStats session_stats; | 660 cricket::SessionStats session_stats; |
| 657 session_stats.transport_stats[transport_stats.transport_name] = | 661 session_stats.transport_stats[transport_stats.transport_name] = |
| 658 transport_stats; | 662 transport_stats; |
| 659 | 663 |
| 660 // Fake certificate to report | 664 // Fake certificate to report |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1725 cricket::VoiceSenderInfo new_voice_sender_info; | 1729 cricket::VoiceSenderInfo new_voice_sender_info; |
| 1726 InitVoiceSenderInfo(&new_voice_sender_info); | 1730 InitVoiceSenderInfo(&new_voice_sender_info); |
| 1727 cricket::VoiceMediaInfo new_stats_read; | 1731 cricket::VoiceMediaInfo new_stats_read; |
| 1728 reports.clear(); | 1732 reports.clear(); |
| 1729 SetupAndVerifyAudioTrackStats( | 1733 SetupAndVerifyAudioTrackStats( |
| 1730 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, | 1734 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, |
| 1731 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); | 1735 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); |
| 1732 } | 1736 } |
| 1733 | 1737 |
| 1734 } // namespace webrtc | 1738 } // namespace webrtc |
| OLD | NEW |