LCOV - code coverage report
Current view: top level - dom/html - MediaError.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 16 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 10 0.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             : #include "mozilla/dom/MediaError.h"
       8             : #include "nsDOMClassInfoID.h"
       9             : #include "mozilla/dom/MediaErrorBinding.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace dom {
      13             : 
      14           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(MediaError, mParent)
      15           0 : NS_IMPL_CYCLE_COLLECTING_ADDREF(MediaError)
      16           0 : NS_IMPL_CYCLE_COLLECTING_RELEASE(MediaError)
      17             : 
      18           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MediaError)
      19           0 :   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
      20           0 :   NS_INTERFACE_MAP_ENTRY(nsISupports)
      21           0 : NS_INTERFACE_MAP_END
      22             : 
      23           0 : MediaError::MediaError(HTMLMediaElement* aParent, uint16_t aCode,
      24           0 :                        const nsACString& aMessage)
      25             :   : mParent(aParent)
      26             :   , mCode(aCode)
      27           0 :   , mMessage(aMessage)
      28             : {
      29           0 : }
      30             : 
      31             : void
      32           0 : MediaError::GetMessage(nsAString& aResult) const
      33             : {
      34           0 :   CopyUTF8toUTF16(mMessage, aResult);
      35           0 : }
      36             : 
      37             : JSObject*
      38           0 : MediaError::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      39             : {
      40           0 :   return MediaErrorBinding::Wrap(aCx, this, aGivenProto);
      41             : }
      42             : 
      43             : } // namespace dom
      44             : } // namespace mozilla

Generated by: LCOV version 1.13