LCOV - code coverage report
Current view: top level - js/xpconnect/tests/components/native - xpctest_module.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
       2             :  *
       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             : /* module registration and factory code. */
       8             : 
       9             : #include "xpctest_private.h"
      10             : 
      11             : #define NS_XPCTESTOBJECTREADONLY_CID                                          \
      12             : { 0x492609a7, 0x2582, 0x436b,                                                 \
      13             :    { 0xb0, 0xef, 0x92, 0xe2, 0x9b, 0xb9, 0xe1, 0x43 } }
      14             : 
      15             : #define NS_XPCTESTOBJECTREADWRITE_CID                                         \
      16             : { 0x8f37f760, 0x3686, 0x4dbb,                                                 \
      17             :    { 0xb1, 0x21, 0x96, 0x93, 0xba, 0x81, 0x3f, 0x8f } }
      18             : 
      19             : #define NS_XPCTESTPARAMS_CID                                                  \
      20             : { 0x1f11076a, 0x0fa2, 0x4f07,                                                 \
      21             :     { 0xb4, 0x7a, 0xa1, 0x54, 0x31, 0xf2, 0xce, 0xf7 } }
      22             : 
      23             : #define NS_XPCTESTRETURNCODEPARENT_CID                                        \
      24             : { 0x3818f744, 0x5445, 0x4e9c,                                                 \
      25             :     { 0x9b, 0xb8, 0x64, 0x62, 0xfe, 0x81, 0xb6, 0x19 } }
      26             : 
      27           0 : NS_GENERIC_FACTORY_CONSTRUCTOR(xpcTestObjectReadOnly)
      28           0 : NS_GENERIC_FACTORY_CONSTRUCTOR(xpcTestObjectReadWrite)
      29           0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsXPCTestParams)
      30           0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsXPCTestReturnCodeParent)
      31             : NS_DEFINE_NAMED_CID(NS_XPCTESTOBJECTREADONLY_CID);
      32             : NS_DEFINE_NAMED_CID(NS_XPCTESTOBJECTREADWRITE_CID);
      33             : NS_DEFINE_NAMED_CID(NS_XPCTESTPARAMS_CID);
      34             : NS_DEFINE_NAMED_CID(NS_XPCTESTRETURNCODEPARENT_CID);
      35             : 
      36             : static const mozilla::Module::CIDEntry kXPCTestCIDs[] = {
      37             :     { &kNS_XPCTESTOBJECTREADONLY_CID, false, nullptr, xpcTestObjectReadOnlyConstructor },
      38             :     { &kNS_XPCTESTOBJECTREADWRITE_CID, false, nullptr, xpcTestObjectReadWriteConstructor },
      39             :     { &kNS_XPCTESTPARAMS_CID, false, nullptr, nsXPCTestParamsConstructor },
      40             :     { &kNS_XPCTESTRETURNCODEPARENT_CID, false, nullptr, nsXPCTestReturnCodeParentConstructor },
      41             :     { nullptr }
      42             : };
      43             : 
      44             : static const mozilla::Module::ContractIDEntry kXPCTestContracts[] = {
      45             :     { "@mozilla.org/js/xpc/test/native/ObjectReadOnly;1", &kNS_XPCTESTOBJECTREADONLY_CID },
      46             :     { "@mozilla.org/js/xpc/test/native/ObjectReadWrite;1", &kNS_XPCTESTOBJECTREADWRITE_CID },
      47             :     { "@mozilla.org/js/xpc/test/native/Params;1", &kNS_XPCTESTPARAMS_CID },
      48             :     { "@mozilla.org/js/xpc/test/native/ReturnCodeParent;1", &kNS_XPCTESTRETURNCODEPARENT_CID },
      49             :     { nullptr }
      50             : };
      51             : 
      52             : const mozilla::Module kXPCTestModule = {
      53             :     mozilla::Module::kVersion,
      54             :     kXPCTestCIDs,
      55             :     kXPCTestContracts
      56             : };

Generated by: LCOV version 1.13