| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 EXPECT_EQ(rtc::ToString<int>(info.decoding_normal), value_in_report); | 341 EXPECT_EQ(rtc::ToString<int>(info.decoding_normal), value_in_report); |
| 342 EXPECT_TRUE(GetValue( | 342 EXPECT_TRUE(GetValue( |
| 343 report, StatsReport::kStatsValueNameDecodingPLC, &value_in_report)); | 343 report, StatsReport::kStatsValueNameDecodingPLC, &value_in_report)); |
| 344 EXPECT_EQ(rtc::ToString<int>(info.decoding_plc), value_in_report); | 344 EXPECT_EQ(rtc::ToString<int>(info.decoding_plc), value_in_report); |
| 345 EXPECT_TRUE(GetValue( | 345 EXPECT_TRUE(GetValue( |
| 346 report, StatsReport::kStatsValueNameDecodingCNG, &value_in_report)); | 346 report, StatsReport::kStatsValueNameDecodingCNG, &value_in_report)); |
| 347 EXPECT_EQ(rtc::ToString<int>(info.decoding_cng), value_in_report); | 347 EXPECT_EQ(rtc::ToString<int>(info.decoding_cng), value_in_report); |
| 348 EXPECT_TRUE(GetValue( | 348 EXPECT_TRUE(GetValue( |
| 349 report, StatsReport::kStatsValueNameDecodingPLCCNG, &value_in_report)); | 349 report, StatsReport::kStatsValueNameDecodingPLCCNG, &value_in_report)); |
| 350 EXPECT_EQ(rtc::ToString<int>(info.decoding_plc_cng), value_in_report); | 350 EXPECT_EQ(rtc::ToString<int>(info.decoding_plc_cng), value_in_report); |
| 351 EXPECT_TRUE(GetValue( | 351 EXPECT_TRUE(GetValue(report, StatsReport::kStatsValueNameDecodingMutedOutput, |
| 352 report, StatsReport::kStatsValueNameCodecName, &value_in_report)); | 352 &value_in_report)); |
| 353 EXPECT_EQ(rtc::ToString<int>(info.decoding_muted_output), value_in_report); |
| 354 EXPECT_TRUE(GetValue(report, StatsReport::kStatsValueNameCodecName, |
| 355 &value_in_report)); |
| 353 } | 356 } |
| 354 | 357 |
| 355 | 358 |
| 356 void VerifyVoiceSenderInfoReport(const StatsReport* report, | 359 void VerifyVoiceSenderInfoReport(const StatsReport* report, |
| 357 const cricket::VoiceSenderInfo& sinfo) { | 360 const cricket::VoiceSenderInfo& sinfo) { |
| 358 std::string value_in_report; | 361 std::string value_in_report; |
| 359 EXPECT_TRUE(GetValue( | 362 EXPECT_TRUE(GetValue( |
| 360 report, StatsReport::kStatsValueNameCodecName, &value_in_report)); | 363 report, StatsReport::kStatsValueNameCodecName, &value_in_report)); |
| 361 EXPECT_EQ(sinfo.codec_name, value_in_report); | 364 EXPECT_EQ(sinfo.codec_name, value_in_report); |
| 362 EXPECT_TRUE(GetValue( | 365 EXPECT_TRUE(GetValue( |
| (...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1879 cricket::VoiceSenderInfo new_voice_sender_info; | 1882 cricket::VoiceSenderInfo new_voice_sender_info; |
| 1880 InitVoiceSenderInfo(&new_voice_sender_info); | 1883 InitVoiceSenderInfo(&new_voice_sender_info); |
| 1881 cricket::VoiceMediaInfo new_stats_read; | 1884 cricket::VoiceMediaInfo new_stats_read; |
| 1882 reports.clear(); | 1885 reports.clear(); |
| 1883 SetupAndVerifyAudioTrackStats( | 1886 SetupAndVerifyAudioTrackStats( |
| 1884 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, | 1887 new_audio_track.get(), stream_.get(), &stats, &voice_channel, kVcName, |
| 1885 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); | 1888 media_channel, &new_voice_sender_info, NULL, &new_stats_read, &reports); |
| 1886 } | 1889 } |
| 1887 | 1890 |
| 1888 } // namespace webrtc | 1891 } // namespace webrtc |
| OLD | NEW |