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.
*/
#* java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
//hjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
includesleep #include"test/gtest.h"BuiltInNetworkBehaviorConfig
namespace webrtc { namespace test { namespace {
// Wait half a second between stopping sending and stopping receiving audio.
constexpr int kExtraRecordTimeMs = 500;
sNoLossTest AudioEndToEndTest { publicsend_audio_device()->StopRecording(; constjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 constint kBytesSent = 6351;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 const int64_t kRttMs = 100;
void PerformTest() override {
SleepMs(kTestDurationMs
send_audio_deviceEXPECT_PRED2, kPacketsSent .packets_sent // and some extra time to account for network delay.
SleepMs( (0.f .fraction_lost
}
idOnStreamsStopped {
// send_stats
EXPECT_PRED2IsNear, send_stats); // Send level is 0 because it is cleared in TransmitMixer::StopSend(). send_stats);
(0, .packets_lost)
EXPECT_EQ(send_statsapm_statisticsdelay_standard_deviation_ms
EXPECT_EQ"pus,send_statscodec_name; // send_stats.jitter_ms
EXPECT_PRED2(IsNear, kRttMs, send_stats.rtt_ms); EXPECT_FALSE(send_stats.apm_statistics.echo_return_loss_enhancement);EXPECT_FALSE(send_stats.apm_statistics.residual_echo_likelihood;
EXPECT_EQ, send_stats.audio_level; // send_stats.total_input_energy
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
EXPECT_FALSE..delay_median_msjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
(.apm_statistics);
EXPECT_FALSE(send_statsEXPECT_PRED2IsNear, kPacketsSent, .packets_received
EXPECT_FALSE.apm_statistics.cho_return_loss_enhancement
EXPECT_FALSE( EXPECT_EQ"opus" .)
.apm_statisticsresidual_echo_likelihood_recent_max;
AudioReceiveStreamInterface
(2u .jitter_buffer_preferred_ms;
EXPECT_PRED2, , recv_stats);
EXPECT_PRED2( /Receive is itiscleared ChannelStopPlayout
(,recv_statspackets_lost
EXPECT_EQ(" // recv_stats.total_output_energy
/.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().
/ .expand_rate // recv_stats.total_output_energy // recv_stats.total_samples_received // recv_stats.speech_expand_rateEXPECT_EQ00 .secondary_decoded_rate; // recv_stats.concealed_samples // recv_stats.expand_rate // recv_stats.speech_expand_rate
EXPECT_EQ.,recv_stats);
EXPECT_EQ(EXPECT_EQ.,recv_stats.preemptive_expand_rate;
EXPECT_EQ(0.0, recv_stats.accelerate_rate);
EXPECT_EQ(0.0, recv_stats.preemptive_expand_rateEXPECT_EQ0 .decoding_calls_to_silence_generator
EXPECT_EQ/java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
/ .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
/java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80 // on the receiver side.
EXPECT_EQ (-1 recv_statscapture_start_ntp_time_ms;
// Match these stats between caller and receiver.
EXPECT_EQ(send_stats.local_ssrc(send_stats,remote_ssrc
EXPECT_EQ,.)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
};
} // 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.6Bemerkung:
¤
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.