Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/media/AudioStreamTrack.cpp
Line
Count
Source (jump to first uncovered line)
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 file,
4
 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "AudioStreamTrack.h"
7
8
#include "nsContentUtils.h"
9
10
#include "mozilla/dom/AudioStreamTrackBinding.h"
11
12
namespace mozilla {
13
namespace dom {
14
15
JSObject*
16
AudioStreamTrack::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
17
0
{
18
0
  return AudioStreamTrack_Binding::Wrap(aCx, this, aGivenProto);
19
0
}
20
21
void
22
AudioStreamTrack::GetLabel(nsAString& aLabel, CallerType aCallerType)
23
0
{
24
0
  if (nsContentUtils::ResistFingerprinting(aCallerType)) {
25
0
    aLabel.AssignLiteral("Internal Microphone");
26
0
    return;
27
0
  }
28
0
  MediaStreamTrack::GetLabel(aLabel, aCallerType);
29
0
}
30
31
} // namespace dom
32
} // namespace mozilla