LCOV - code coverage report
Current view: top level - dom/media - AudioTrackList.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 11 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #include "mozilla/dom/AudioTrack.h"
       7             : #include "mozilla/dom/AudioTrackList.h"
       8             : #include "mozilla/dom/AudioTrackListBinding.h"
       9             : 
      10             : namespace mozilla {
      11             : namespace dom {
      12             : 
      13             : JSObject*
      14           0 : AudioTrackList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      15             : {
      16           0 :   return AudioTrackListBinding::Wrap(aCx, this, aGivenProto);
      17             : }
      18             : 
      19             : AudioTrack*
      20           0 : AudioTrackList::operator[](uint32_t aIndex)
      21             : {
      22           0 :   MediaTrack* track = MediaTrackList::operator[](aIndex);
      23           0 :   return track->AsAudioTrack();
      24             : }
      25             : 
      26             : AudioTrack*
      27           0 : AudioTrackList::IndexedGetter(uint32_t aIndex, bool& aFound)
      28             : {
      29           0 :   MediaTrack* track = MediaTrackList::IndexedGetter(aIndex, aFound);
      30           0 :   return track ? track->AsAudioTrack() : nullptr;
      31             : }
      32             : 
      33             : AudioTrack*
      34           0 : AudioTrackList::GetTrackById(const nsAString& aId)
      35             : {
      36           0 :   MediaTrack* track = MediaTrackList::GetTrackById(aId);
      37           0 :   return track ? track->AsAudioTrack() : nullptr;
      38             : }
      39             : 
      40             : } // namespace dom
      41             : } // namespace mozilla

Generated by: LCOV version 1.13