LCOV - code coverage report
Current view: top level - toolkit/components/telemetry - WebrtcTelemetry.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 5 20.0 %
Date: 2017-07-14 16:53:18 Functions: 1 4 25.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef WebrtcTelemetry_h__
       8             : #define WebrtcTelemetry_h__
       9             : 
      10             : #include "nsBaseHashtable.h"
      11             : #include "nsHashKeys.h"
      12             : #include "TelemetryCommon.h"
      13             : 
      14           3 : class WebrtcTelemetry {
      15             : public:
      16             :   struct WebrtcIceCandidateStats {
      17             :     uint32_t successCount;
      18             :     uint32_t failureCount;
      19           0 :     WebrtcIceCandidateStats() :
      20             :       successCount(0),
      21           0 :       failureCount(0)
      22             :     {
      23           0 :     }
      24             :   };
      25           0 :   struct WebrtcIceStatsCategory {
      26             :     struct WebrtcIceCandidateStats webrtc;
      27             :   };
      28             :   typedef nsBaseHashtableET<nsUint32HashKey, WebrtcIceStatsCategory> WebrtcIceCandidateType;
      29             : 
      30             :   void RecordIceCandidateMask(const uint32_t iceCandidateBitmask, bool success);
      31             : 
      32             :   bool GetWebrtcStats(JSContext *cx, JS::MutableHandle<JS::Value> ret);
      33             : 
      34             :   size_t SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
      35             : 
      36             : private:
      37             : 
      38             :   bool AddIceInfo(JSContext *cx, JS::Handle<JSObject*> rootObj);
      39             : 
      40             :   mozilla::Telemetry::Common::AutoHashtable<WebrtcIceCandidateType> mWebrtcIceCandidates;
      41             : };
      42             : 
      43             : #endif // WebrtcTelemetry_h__

Generated by: LCOV version 1.13