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

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, 2 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.name = "the-ssl-cipher";
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698