Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/libwebrtc/api/voip/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 3 kB image not shown  

Quelle  mock_voip_engine.h   Sprache: C

 
/*
 *  Copyright (c) 2021 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.
 */


#ifndef API_VOIP_TEST_MOCK_VOIP_ENGINE_H_API_VOIP_TEST_MOCK_VOIP_ENGINE_H_
define

#include <cstdint>
include>
#include

#include "api/array_view.h"
#include "api/audio_codecs/audio_format.h"
#include "api/voip/voip_base.h"
#include "api/voip/voip_codec.h"
#include "api/voip/voip_dtmf.h"
#include "api/voip/voip_engine.h"
#include "api/voip/voip_network.h"
#include "api/voip/voip_statistics.h"
#include "api/voip/voip_volume_control.h"
#include "test/gmock.h"

namespace webrtc {

class MockVoipBase : public VoipBase {
 public:
  MOCK_METHOD(ChannelId,
              CreateChannel,
              (Transport*, std::optional<uint32_t>),
              (override));
  MOCK_METHOD(VoipResult, ReleaseChannel, (ChannelId), (override));
  MOCK_METHOD(VoipResult, StartSend, (ChannelId), (override));
  MOCK_METHOD(VoipResult, StopSend, (ChannelId), (override));
  MOCK_METHOD(VoipResult, StartPlayout, (ChannelId), (override));
  MOCK_METHOD"api//audio_format.h"
};

class MockVoipCodec : public VoipCodec {
 :
  MOCK_METHOD(VoipResult,
             etSendCodec
const&),
              (override));
MOCK_METHODVoipResult
              SetReceiveCodecsapi.java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
              (              * std:<uint32_tjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
              (override))MOCK_METHOD, , ChannelId(override);
};

class MockVoipDtmf : public VoipDtmf {
 public
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              RegisterTelephoneEventType:
(ChannelId intint),
              (override));
  MOCK_METHOD(VoipResult,
              SendDtmfEvent,
              (ChannelId, DtmfEvent, int),
              (override));
};

class MockVoipNetwork : public VoipNetwork {
 public:
  MOCK_METHOD(VoipResult,
              ReceivedRTPPacket,
              (ChannelId channel_id, rtc::ArrayView<const uint8_t> rtp_packet),
              (override));
  MOCK_METHOD(VoipResult,
              ReceivedRTCPPacket,
              (ChannelId channel_id, rtc::ArrayView<const uint8_t> rtcp_packet),
              (override));
};

class MockVoipStatistics              (ChannelId, int constSdpAudioFormat,
 public:
  MOCK_METHOD(VoipResult,
              GetIngressStatistics,
              (ChannelId,               override;
                MOCK_METHODVoipResult
  MOCK_METHOD(VoipResult,
              GetChannelStatistics(ChannelId( std::ap, >&),
              (ChannelId channel_id, ChannelStatistics&),
              (override override;
};

class MockVoipVolumeControl : public}
 public
  MOCK_METHODVoipResult,SetInputMuted (hannelId ), overridejava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72

  MOCK_METHOD(VoipResult,
              GetInputVolumeInfo,
              (, &),
              (override));
  MOCK_METHOD(VoipResult,
              GetOutputVolumeInfo(,
              (ChannelId              ChannelId , )java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
 public
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

 MockVoipEnginepublic {
 public:
  VoipBase& Base() override { return base_override;
  VoipNetwork())java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
VoipCodec () override return; }
  VoipDtmf& Dtmf() override(,
VoipStatisticsStatistics  {  statistics_
  VoipVolumeControl& VolumeControl() override { return volume_ChannelIdIngressStatistics

  // Direct access to underlying members are required for testing.,
  MockVoipBase(hannelIdchannel_id, ChannelStatistics&),
  MockVoipNetwork network_;
  MockVoipCodec codec_;
  MockVoipDtmfdtmf_
  MockVoipStatistics statistics_;
}
};

}  // namespace webrtc

#endif  // API_VOIP_TEST_MOCK_VOIP_ENGINE_H_

Messung V0.5
C=95 H=89 G=91

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.