LCOV - code coverage report
Current view: top level - ipc/dbus - DBusMessageRefPtr.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
       2             : /* vim: set ts=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 file,
       5             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_ipc_DBusMessageRefPtr_h
       8             : #define mozilla_ipc_DBusMessageRefPtr_h
       9             : 
      10             : #include <dbus/dbus.h>
      11             : #include "mozilla/RefPtr.h"
      12             : 
      13             : namespace mozilla {
      14             : 
      15             : template<>
      16             : struct RefPtrTraits<DBusMessage>
      17             : {
      18             :   static void AddRef(DBusMessage* aMessage) {
      19             :     MOZ_ASSERT(aMessage);
      20             :     dbus_message_ref(aMessage);
      21             :   }
      22           0 :   static void Release(DBusMessage* aMessage) {
      23           0 :     MOZ_ASSERT(aMessage);
      24           0 :     dbus_message_unref(aMessage);
      25           0 :   }
      26             : };
      27             : 
      28             : } // namespace mozilla
      29             : 
      30             : #endif // mozilla_ipc_DBusMessageRefPtr_h

Generated by: LCOV version 1.13