webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Functions | Variables
statscollector_unittest.cc File Reference
#include <stdio.h>
#include <algorithm>
#include <memory>
#include "webrtc/pc/statscollector.h"
#include "webrtc/api/mediastreaminterface.h"
#include "webrtc/base/base64.h"
#include "webrtc/base/fakesslidentity.h"
#include "webrtc/base/gunit.h"
#include "webrtc/base/network.h"
#include "webrtc/base/stringencode.h"
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
#include "webrtc/media/base/fakemediaengine.h"
#include "webrtc/media/base/test/mock_mediachannel.h"
#include "webrtc/pc/channelmanager.h"
#include "webrtc/pc/mediastream.h"
#include "webrtc/pc/mediastreamtrack.h"
#include "webrtc/pc/peerconnection.h"
#include "webrtc/pc/peerconnectionfactory.h"
#include "webrtc/pc/test/fakedatachannelprovider.h"
#include "webrtc/pc/test/fakevideotracksource.h"
#include "webrtc/pc/test/mock_peerconnection.h"
#include "webrtc/pc/test/mock_webrtcsession.h"
#include "webrtc/pc/videotrack.h"
#include "webrtc/test/gmock.h"
#include "webrtc/test/gtest.h"

Classes

class  webrtc::FakeAudioProcessor
 
class  webrtc::FakeAudioTrack
 
class  webrtc::FakeAudioProcessorWithInitValue
 
class  webrtc::FakeAudioTrackWithInitValue
 
class  webrtc::StatsCollectorForTest
 
class  webrtc::StatsCollectorTest
 

Namespaces

 cricket
 
 webrtc
 
 webrtc::internal
 

Functions

bool webrtc::GetValue (const StatsReport *report, StatsReport::StatsValueName name, std::string *value)
 
std::string webrtc::ExtractStatsValue (const StatsReport::StatsType &type, const StatsReports &reports, StatsReport::StatsValueName name)
 
StatsReport::Id webrtc::TypedIdFromIdString (StatsReport::StatsType type, const std::string &value)
 
StatsReport::Id webrtc::IdFromCertIdString (const std::string &cert_id)
 
const StatsReportwebrtc::FindNthReportByType (const StatsReports &reports, const StatsReport::StatsType &type, int n)
 
const StatsReportwebrtc::FindReportById (const StatsReports &reports, const StatsReport::Id &id)
 
std::string webrtc::ExtractSsrcStatsValue (StatsReports reports, StatsReport::StatsValueName name)
 
std::string webrtc::ExtractBweStatsValue (StatsReports reports, StatsReport::StatsValueName name)
 
std::string webrtc::DerToPem (const std::string &der)
 
std::vector< std::stringwebrtc::DersToPems (const std::vector< std::string > &ders)
 
void webrtc::CheckCertChainReports (const StatsReports &reports, const std::vector< std::string > &ders, const StatsReport::Id &start_id)
 
void webrtc::VerifyVoiceReceiverInfoReport (const StatsReport *report, const cricket::VoiceReceiverInfo &info)
 
void webrtc::VerifyVoiceSenderInfoReport (const StatsReport *report, const cricket::VoiceSenderInfo &sinfo)
 
void webrtc::InitVoiceSenderInfo (cricket::VoiceSenderInfo *voice_sender_info)
 
void webrtc::UpdateVoiceSenderInfoFromAudioTrack (AudioTrackInterface *audio_track, cricket::VoiceSenderInfo *voice_sender_info)
 
void webrtc::InitVoiceReceiverInfo (cricket::VoiceReceiverInfo *voice_receiver_info)
 
 webrtc::TEST_F (StatsCollectorTest, FilterOutNegativeDataChannelId)
 
 webrtc::TEST_F (StatsCollectorTest, ExtractDataInfo)
 
 webrtc::TEST_F (StatsCollectorTest, BytesCounterHandles64Bits)
 
 webrtc::TEST_F (StatsCollectorTest, BandwidthEstimationInfoIsReported)
 
 webrtc::TEST_F (StatsCollectorTest, SessionObjectExists)
 
 webrtc::TEST_F (StatsCollectorTest, OnlyOneSessionObjectExists)
 
 webrtc::TEST_F (StatsCollectorTest, TrackObjectExistsWithoutUpdateStats)
 
 webrtc::TEST_F (StatsCollectorTest, TrackAndSsrcObjectExistAfterUpdateSsrcStats)
 
 webrtc::TEST_F (StatsCollectorTest, TransportObjectLinkedFromSsrcObject)
 
 webrtc::TEST_F (StatsCollectorTest, RemoteSsrcInfoIsAbsent)
 
 webrtc::TEST_F (StatsCollectorTest, RemoteSsrcInfoIsPresent)
 
 webrtc::TEST_F (StatsCollectorTest, ReportsFromRemoteTrack)
 
 webrtc::TEST_F (StatsCollectorTest, IceCandidateReport)
 
 webrtc::TEST_F (StatsCollectorTest, ChainedCertificateReportsCreated)
 
 webrtc::TEST_F (StatsCollectorTest, ChainlessCertificateReportsCreated)
 
 webrtc::TEST_F (StatsCollectorTest, NoTransport)
 
 webrtc::TEST_F (StatsCollectorTest, NoCertificates)
 
 webrtc::TEST_F (StatsCollectorTest, UnsupportedDigestIgnored)
 
 webrtc::TEST_F (StatsCollectorTest, FilterOutNegativeInitialValues)
 
 webrtc::TEST_F (StatsCollectorTest, GetStatsFromLocalAudioTrack)
 
 webrtc::TEST_F (StatsCollectorTest, GetStatsFromRemoteStream)
 
 webrtc::TEST_F (StatsCollectorTest, GetStatsAfterRemoveAudioStream)
 
 webrtc::TEST_F (StatsCollectorTest, LocalAndRemoteTracksWithSameSsrc)
 
 webrtc::TEST_F (StatsCollectorTest, TwoLocalTracksWithSameSsrc)
 
 webrtc::TEST_F (StatsCollectorTest, VerifyVideoSendSsrcStats)
 
 webrtc::TEST_F (StatsCollectorTest, VerifyVideoReceiveSsrcStats)
 

Variables

const char webrtc::kNotFound [] = "NOT FOUND"
 
const char webrtc::kLocalTrackId [] = "local_track_id"
 
const char webrtc::kRemoteTrackId [] = "remote_track_id"
 
const uint32_t webrtc::kSsrcOfTrack = 1234