Searched refs:PerSessionWebRTCAPIMetrics (Results 1 – 4 of 4) sorted by relevance
25 PerSessionWebRTCAPIMetrics::GetInstance()->LogUsageOnlyOnce(api_name); in UpdateWebRTCMethodCount()28 PerSessionWebRTCAPIMetrics::~PerSessionWebRTCAPIMetrics() { in ~PerSessionWebRTCAPIMetrics()32 PerSessionWebRTCAPIMetrics* PerSessionWebRTCAPIMetrics::GetInstance() { in GetInstance()33 return Singleton<PerSessionWebRTCAPIMetrics>::get(); in GetInstance()36 void PerSessionWebRTCAPIMetrics::IncrementStreamCounter() { in IncrementStreamCounter()41 void PerSessionWebRTCAPIMetrics::DecrementStreamCounter() { in DecrementStreamCounter()48 PerSessionWebRTCAPIMetrics::PerSessionWebRTCAPIMetrics() : num_streams_(0) { in PerSessionWebRTCAPIMetrics() function in content::PerSessionWebRTCAPIMetrics52 void PerSessionWebRTCAPIMetrics::LogUsage(JavaScriptAPIName api_name) { in LogUsage()58 void PerSessionWebRTCAPIMetrics::LogUsageOnlyOnce(JavaScriptAPIName api_name) { in LogUsageOnlyOnce()66 void PerSessionWebRTCAPIMetrics::ResetUsage() { in ResetUsage()
14 class MockPerSessionWebRTCAPIMetrics : public PerSessionWebRTCAPIMetrics {18 using PerSessionWebRTCAPIMetrics::LogUsageOnlyOnce;23 TEST(PerSessionWebRTCAPIMetrics, NoCallOngoingGetUserMedia) { in TEST() argument29 TEST(PerSessionWebRTCAPIMetrics, CallOngoingGetUserMedia) { in TEST() argument36 TEST(PerSessionWebRTCAPIMetrics, NoCallOngoingGetMediaDevices) { in TEST() argument42 TEST(PerSessionWebRTCAPIMetrics, CallOngoingGetMediaDevices) { in TEST() argument49 TEST(PerSessionWebRTCAPIMetrics, NoCallOngoingRTCPeerConnection) { in TEST() argument55 TEST(PerSessionWebRTCAPIMetrics, NoCallOngoingMultiplePC) { in TEST() argument63 TEST(PerSessionWebRTCAPIMetrics, BeforeAfterCallMultiplePC) { in TEST() argument
64 class CONTENT_EXPORT PerSessionWebRTCAPIMetrics : public base::NonThreadSafe {66 virtual ~PerSessionWebRTCAPIMetrics();68 static PerSessionWebRTCAPIMetrics* GetInstance();76 friend struct DefaultSingletonTraits<PerSessionWebRTCAPIMetrics>;81 PerSessionWebRTCAPIMetrics();96 DISALLOW_COPY_AND_ASSIGN(PerSessionWebRTCAPIMetrics);
693 PerSessionWebRTCAPIMetrics::GetInstance()->IncrementStreamCounter(); in addStream()726 PerSessionWebRTCAPIMetrics::GetInstance()->DecrementStreamCounter(); in removeStream()936 PerSessionWebRTCAPIMetrics::GetInstance()->IncrementStreamCounter(); in OnAddStream()955 PerSessionWebRTCAPIMetrics::GetInstance()->DecrementStreamCounter(); in OnRemoveStream()