Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  mock_ice_transport.h

  Sprache: C
 

/*
 *  Copyright 2016 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 P2P_TEST_MOCK_ICE_TRANSPORT_H_
#define P2P_TEST_MOCK_ICE_TRANSPORT_H_

#include <cstddef>
#include <optional>
#include <string>

#include "api/candidate.h"
#include "api/transport/enums.h"
#include "p2p/base/candidate_pair_interface.h"
#include "p2p/base/ice_transport_internal.h"
#include "p2p/base/transport_description.h"
#include "rtc_base/async_packet_socket.h"
#include "rtc_base/socket.h"
#include "test/gmock.h"

namespace webrtc {

// Used in Chromium/remoting/protocol/channel_socket_adapter_unittest.cc
class MockIceTransport : public IceTransportInternal {
 public:
  MockIceTransport() {
    NotifyReadyToSend(this);
    NotifyWritableState(this);
  }

  MOCK_METHOD(int,
              SendPacket,
              (const char* data,
               size_t len,
               const AsyncSocketPacketOptions& options,
               int flags),
              (override));
  MOCK_METHOD(int, SetOption, (Socket::Option opt, int value), (override));
  MOCK_METHOD(int, GetError, (), (override));
  MOCK_METHOD(IceRole, GetIceRole, (), (const, override));
  MOCK_METHOD(bool,
              GetStats,
              (IceTransportStats * ice_transport_stats),
              (override));
  MOCK_METHOD(IceTransportStateInternal, GetState, (), (const override));
  MOCK_METHOD(IceTransportState, GetIceTransportState, (), (const override));

  MOCK_METHOD(const std::string&, transport_name, (), (const override));
  MOCK_METHOD(int, component, (), (const override));
  MOCK_METHOD(void, SetIceRole, (IceRole), (override));
  // The ufrag and pwd in `ice_params` must be set
  // before candidate gathering can start.
  MOCK_METHOD(void, SetIceParameters, (const IceParameters&), (override));
  MOCK_METHOD(void, SetRemoteIceParameters, (const IceParameters&), (override));
  MOCK_METHOD(void, SetRemoteIceMode, (IceMode), (override));
  MOCK_METHOD(void, SetIceConfig, (const IceConfig& config), (override));
  MOCK_METHOD(const IceConfig&, config, (), (const override));
  MOCK_METHOD(std::optional<int>, GetRttEstimate, (), (override));
  MOCK_METHOD(std::optional<const CandidatePair>,
              GetSelectedCandidatePair,
              (),
              (const, override));
  MOCK_METHOD(void, MaybeStartGathering, (), (override));
  MOCK_METHOD(void, AddRemoteCandidate, (const Candidate&), (override));
  MOCK_METHOD(void, RemoveRemoteCandidate, (const Candidate&), (override));
  MOCK_METHOD(void, RemoveAllRemoteCandidates, (), (override));
  MOCK_METHOD(IceGatheringState, gathering_state, (), (const override));

  MOCK_METHOD(bool, receiving, (), (const override));
  MOCK_METHOD(bool, writable, (), (const override));
};

}  //  namespace webrtc


#endif  // P2P_TEST_MOCK_ICE_TRANSPORT_H_

Messung V0.5 in Prozent
C=88 H=100 G=94

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002