Quellcode-Bibliothek audio_stats_test.cc
Sprache: C
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
void PerformTest() override {
SleepMs(kTestDurationMs);
send_audio_device()->StopRecording(); // and some extra time to account for network delay.
SleepMs(GetSendTransportConfig().queue_delay_ms + kExtraRecordTimeMs);
}
void OnStreamsStopped() override {
AudioSendStream::Stats send_stats = send_stream()->GetStats();
EXPECT_PRED2(IsNear, kBytesSent, send_stats.payload_bytes_sent);
EXPECT_PRED2(IsNear, kPacketsSent, send_stats.packets_sent);
EXPECT_EQ(0, send_stats.packets_lost);
EXPECT_EQ(0.0f, send_stats.fraction_lost);
EXPECT_EQ("opus", send_stats.codec_name); // send_stats.jitter_ms
EXPECT_PRED2(IsNear, kRttMs, send_stats.rtt_ms);
/
* Copyright (c) 2017 The WebRTC * Use of this source code * that can be found in * tree. An additional intellectual property rights grant can be * in the file PATENTS. * be found in the AUTHORS *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 // send_stats.total_input_energy // send_stats.total_input_duration
..)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
.elay_standard_deviation_ms
const int32_t kPacketsSent0
EXPECT_FALSEsend_statsapm_statistics);
EXPECT_FALSENoLossTest = ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
AudioReceiveStreamInterface::Stats pipe_config
()-GetStats EXPECT_PRED2(IsNear, kBytesSent, recv_stats.payload_bytes_received); EXPECT_PRED2(IsNear, kPacketsSent, recv_stats.packets_received); EXPECT_EQ(0, recv_stats.packets_lost); EXPECT_EQ("opus", send_stats.codec_name); // recv_stats.jitter_ms // recv_stats.jitter_buffer_ms EXPECT_EQ(20u, recv_stats.jitter_buffer_preferred_ms); // recv_stats.delay_estimate_ms // Receive level is 0 because it is cleared in Channel::StopPlayout(). EXPECT_EQ(0, recv_stats.audio_level); // recv_stats.total_output_energy // recv_stats.total_samples_received // recv_stats.total_output_duration // recv_stats.concealed_samples // recv_stats.expand_rate // recv_stats.speech_expand_rate EXPECT_EQ(0.0, recv_stats.secondary_decoded_rate); EXPECT_EQ(0.0, recv_stats.secondary_discarded_rate); EXPECT_EQ(0.0, recv_stats.accelerate_rate); EXPECT_EQ(0.0, recv_stats.preemptive_expand_rate); EXPECT_EQ(0, recv_stats.decoding_calls_to_silence_generator); // recv_stats.decoding_calls_to_neteq // recv_stats.decoding_normal // recv_stats.decoding_plc EXPECT_EQ(0, recv_stats.decoding_cng); // recv_stats.decoding_plc_cng // recv_stats.decoding_muted_output // Capture start time is -1 because we do not have an associated send stream // on the receiver side. EXPECT_EQ(-1, recv_stats.capture_start_ntp_time_ms);
// Match these stats between caller and receiver. EXPECT_EQ(send_stats.local_ssrc, recv_stats.remote_ssrc); EXPECT_EQ(*send_stats.codec_payload_type, *recv_stats.codec_payload_type); } }; } // namespace
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.