Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/presentation/DCPresentationChannelDescription.cpp
Line
Count
Source (jump to first uncovered line)
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
#include "DCPresentationChannelDescription.h"
8
9
namespace mozilla {
10
namespace dom {
11
12
NS_IMPL_ISUPPORTS(DCPresentationChannelDescription,
13
                  nsIPresentationChannelDescription)
14
15
NS_IMETHODIMP
16
DCPresentationChannelDescription::GetType(uint8_t* aRetVal)
17
0
{
18
0
  if (NS_WARN_IF(!aRetVal)) {
19
0
    return NS_ERROR_INVALID_POINTER;
20
0
  }
21
0
22
0
  *aRetVal = nsIPresentationChannelDescription::TYPE_DATACHANNEL;
23
0
  return NS_OK;
24
0
}
25
26
NS_IMETHODIMP
27
DCPresentationChannelDescription::GetTcpAddress(nsIArray** aRetVal)
28
0
{
29
0
  return NS_ERROR_FAILURE;
30
0
}
31
32
NS_IMETHODIMP
33
DCPresentationChannelDescription::GetTcpPort(uint16_t* aRetVal)
34
0
{
35
0
  return NS_ERROR_FAILURE;
36
0
}
37
38
NS_IMETHODIMP
39
DCPresentationChannelDescription::GetDataChannelSDP(nsAString& aDataChannelSDP)
40
0
{
41
0
  aDataChannelSDP = mSDP;
42
0
  return NS_OK;
43
0
}
44
45
} // namespace dom
46
} // namespace mozilla