Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: talk/app/webrtc/statscollector_unittest.cc

Issue 1337673002: Change WebRTC SslCipher to be exposed as number only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 const rtc::FakeSSLCertificate& remote_cert, 637 const rtc::FakeSSLCertificate& remote_cert,
638 const std::vector<std::string>& remote_ders) { 638 const std::vector<std::string>& remote_ders) {
639 StatsCollectorForTest stats(&session_); 639 StatsCollectorForTest stats(&session_);
640 640
641 StatsReports reports; // returned values. 641 StatsReports reports; // returned values.
642 642
643 // Fake stats to process. 643 // Fake stats to process.
644 cricket::TransportChannelStats channel_stats; 644 cricket::TransportChannelStats channel_stats;
645 channel_stats.component = 1; 645 channel_stats.component = 1;
646 channel_stats.srtp_cipher = "the-srtp-cipher"; 646 channel_stats.srtp_cipher = "the-srtp-cipher";
647 channel_stats.ssl_cipher = "the-ssl-cipher"; 647 channel_stats.ssl_cipher.rfc_name = "the-ssl-cipher";
648 648
649 cricket::TransportStats transport_stats; 649 cricket::TransportStats transport_stats;
650 transport_stats.content_name = "audio"; 650 transport_stats.content_name = "audio";
651 transport_stats.channel_stats.push_back(channel_stats); 651 transport_stats.channel_stats.push_back(channel_stats);
652 652
653 cricket::SessionStats session_stats; 653 cricket::SessionStats session_stats;
654 session_stats.transport_stats[transport_stats.content_name] = 654 session_stats.transport_stats[transport_stats.content_name] =
655 transport_stats; 655 transport_stats;
656 656
657 // Fake certificates to report. 657 // Fake certificates to report.
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 cricket::VoiceSenderInfo new_voice_sender_info; 1703 cricket::VoiceSenderInfo new_voice_sender_info;
1704 InitVoiceSenderInfo(&new_voice_sender_info); 1704 InitVoiceSenderInfo(&new_voice_sender_info);
1705 cricket::VoiceMediaInfo new_stats_read; 1705 cricket::VoiceMediaInfo new_stats_read;
1706 reports.clear(); 1706 reports.clear();
1707 SetupAndVerifyAudioTrackStats( 1707 SetupAndVerifyAudioTrackStats(
1708 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, 1708 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName,
1709 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); 1709 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports);
1710 } 1710 }
1711 1711
1712 } // namespace webrtc 1712 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698