LCOV - code coverage report
Current view: top level - dom/presentation - PresentationTerminateRequest.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 1 24 4.2 %
Date: 2017-07-14 16:53:18 Functions: 2 12 16.7 %
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             : #include "PresentationTerminateRequest.h"
       8             : #include "nsIPresentationControlChannel.h"
       9             : #include "nsIPresentationDevice.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace dom {
      13             : 
      14           0 : NS_IMPL_ISUPPORTS(PresentationTerminateRequest, nsIPresentationTerminateRequest)
      15             : 
      16           0 : PresentationTerminateRequest::PresentationTerminateRequest(
      17             :                                  nsIPresentationDevice* aDevice,
      18             :                                  const nsAString& aPresentationId,
      19             :                                  nsIPresentationControlChannel* aControlChannel,
      20           0 :                                  bool aIsFromReceiver)
      21             :   : mPresentationId(aPresentationId)
      22             :   , mDevice(aDevice)
      23             :   , mControlChannel(aControlChannel)
      24           0 :   , mIsFromReceiver(aIsFromReceiver)
      25             : {
      26           0 : }
      27             : 
      28           0 : PresentationTerminateRequest::~PresentationTerminateRequest()
      29             : {
      30           0 : }
      31             : 
      32             : // nsIPresentationTerminateRequest
      33             : NS_IMETHODIMP
      34           0 : PresentationTerminateRequest::GetDevice(nsIPresentationDevice** aRetVal)
      35             : {
      36           0 :   NS_ENSURE_ARG_POINTER(aRetVal);
      37             : 
      38           0 :   nsCOMPtr<nsIPresentationDevice> device = mDevice;
      39           0 :   device.forget(aRetVal);
      40             : 
      41           0 :   return NS_OK;
      42             : }
      43             : 
      44             : NS_IMETHODIMP
      45           0 : PresentationTerminateRequest::GetPresentationId(nsAString& aRetVal)
      46             : {
      47           0 :   aRetVal = mPresentationId;
      48             : 
      49           0 :   return NS_OK;
      50             : }
      51             : 
      52             : NS_IMETHODIMP
      53           0 : PresentationTerminateRequest::GetControlChannel(
      54             :                                         nsIPresentationControlChannel** aRetVal)
      55             : {
      56           0 :   NS_ENSURE_ARG_POINTER(aRetVal);
      57             : 
      58           0 :   nsCOMPtr<nsIPresentationControlChannel> controlChannel = mControlChannel;
      59           0 :   controlChannel.forget(aRetVal);
      60             : 
      61           0 :   return NS_OK;
      62             : }
      63             : 
      64             : NS_IMETHODIMP
      65           0 : PresentationTerminateRequest::GetIsFromReceiver(bool* aRetVal)
      66             : {
      67           0 :   *aRetVal = mIsFromReceiver;
      68             : 
      69           0 :   return NS_OK;
      70             : }
      71             : 
      72             : } // namespace dom
      73           9 : } // namespace mozilla

Generated by: LCOV version 1.13