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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
644 const rtc::FakeSSLCertificate& remote_cert, | 644 const rtc::FakeSSLCertificate& remote_cert, |
645 const std::vector<std::string>& remote_ders) { | 645 const std::vector<std::string>& remote_ders) { |
646 StatsCollectorForTest stats(&session_); | 646 StatsCollectorForTest stats(&session_); |
647 | 647 |
648 StatsReports reports; // returned values. | 648 StatsReports reports; // returned values. |
649 | 649 |
650 // Fake stats to process. | 650 // Fake stats to process. |
651 cricket::TransportChannelStats channel_stats; | 651 cricket::TransportChannelStats channel_stats; |
652 channel_stats.component = 1; | 652 channel_stats.component = 1; |
653 channel_stats.srtp_cipher = "the-srtp-cipher"; | 653 channel_stats.srtp_cipher = "the-srtp-cipher"; |
654 channel_stats.ssl_cipher = "the-ssl-cipher"; | 654 channel_stats.ssl_cipher = 0xC014; |
Ryan Sleevi
2015/09/28 17:24:17
Perhaps a comment explaining this magic value.
pthatcher1
2015/09/29 22:25:16
+1
Or better yet, make a named constant and then
guoweis_webrtc
2015/09/30 04:09:46
Done.
| |
655 | 655 |
656 cricket::TransportStats transport_stats; | 656 cricket::TransportStats transport_stats; |
657 transport_stats.transport_name = "audio"; | 657 transport_stats.transport_name = "audio"; |
658 transport_stats.channel_stats.push_back(channel_stats); | 658 transport_stats.channel_stats.push_back(channel_stats); |
659 | 659 |
660 cricket::SessionStats session_stats; | 660 cricket::SessionStats session_stats; |
661 session_stats.transport_stats[transport_stats.transport_name] = | 661 session_stats.transport_stats[transport_stats.transport_name] = |
662 transport_stats; | 662 transport_stats; |
663 | 663 |
664 // Fake certificate to report | 664 // Fake certificate to report |
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1729 cricket::VoiceSenderInfo new_voice_sender_info; | 1729 cricket::VoiceSenderInfo new_voice_sender_info; |
1730 InitVoiceSenderInfo(&new_voice_sender_info); | 1730 InitVoiceSenderInfo(&new_voice_sender_info); |
1731 cricket::VoiceMediaInfo new_stats_read; | 1731 cricket::VoiceMediaInfo new_stats_read; |
1732 reports.clear(); | 1732 reports.clear(); |
1733 SetupAndVerifyAudioTrackStats( | 1733 SetupAndVerifyAudioTrackStats( |
1734 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, | 1734 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, |
1735 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); | 1735 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); |
1736 } | 1736 } |
1737 | 1737 |
1738 } // namespace webrtc | 1738 } // namespace webrtc |
OLD | NEW |