LCOV - code coverage report
Current view: directory - objdir/xpcom/build - nsClassInfoImpl.cpp (source / functions) Found Hit Coverage
Test: app.info Lines: 31 17 54.8 %
Date: 2012-04-21 Functions: 11 7 63.6 %

       1                 : #include "nsIClassInfoImpl.h"

       2                 : #include "nsIProgrammingLanguage.h"
       3                 : 

       4                 : NS_IMETHODIMP_(nsrefcnt)
       5          241764 : GenericClassInfo::AddRef()

       6                 : {
       7          241764 :   return 2;

       8                 : }
       9                 : 

      10                 : NS_IMETHODIMP_(nsrefcnt)
      11          244456 : GenericClassInfo::Release()

      12                 : {
      13          244456 :   return 1;

      14                 : }

      15                 : 
      16          194236 : NS_IMPL_QUERY_INTERFACE1(GenericClassInfo, nsIClassInfo)

      17                 : 

      18                 : NS_IMETHODIMP
      19           11763 : GenericClassInfo::GetInterfaces(PRUint32* countp, nsIID*** array)

      20                 : {
      21           11763 :   return mData->getinterfaces(countp, array);

      22                 : }
      23                 : 

      24                 : NS_IMETHODIMP
      25          161432 : GenericClassInfo::GetHelperForLanguage(PRUint32 language, nsISupports** helper)

      26                 : {
      27          161432 :   if (mData->getlanguagehelper)

      28           90975 :     return mData->getlanguagehelper(language, helper);

      29           70457 :   return NS_ERROR_NOT_IMPLEMENTED;

      30                 : }
      31                 : 

      32                 : NS_IMETHODIMP
      33               0 : GenericClassInfo::GetContractID(char** contractid)

      34                 : {
      35               0 :   NS_ERROR("GetContractID not implemented");

      36               0 :   *contractid = NULL;

      37               0 :   return NS_ERROR_NOT_IMPLEMENTED;

      38                 : }
      39                 : 

      40                 : NS_IMETHODIMP
      41               0 : GenericClassInfo::GetClassDescription(char** description)

      42                 : {
      43               0 :   *description = NULL;

      44               0 :   return NS_ERROR_NOT_IMPLEMENTED;

      45                 : }
      46                 : 

      47                 : NS_IMETHODIMP
      48               0 : GenericClassInfo::GetClassID(nsCID** classid)

      49                 : {
      50               0 :   NS_ERROR("GetClassID not implemented");

      51               0 :   *classid = NULL;

      52               0 :   return NS_ERROR_NOT_IMPLEMENTED;

      53                 : }
      54                 : 

      55                 : NS_IMETHODIMP
      56               0 : GenericClassInfo::GetImplementationLanguage(PRUint32* language)

      57                 : {
      58               0 :   *language = nsIProgrammingLanguage::CPLUSPLUS;

      59               0 :   return NS_OK;

      60                 : }
      61                 : 

      62                 : NS_IMETHODIMP
      63          201440 : GenericClassInfo::GetFlags(PRUint32* flags)

      64                 : {
      65          201440 :   *flags = mData->flags;

      66          201440 :   return NS_OK;

      67                 : }
      68                 : 

      69                 : NS_IMETHODIMP
      70            7362 : GenericClassInfo::GetClassIDNoAlloc(nsCID* aClassIDNoAlloc)

      71                 : {
      72            7362 :   *aClassIDNoAlloc = mData->cid;

      73            7362 :   return NS_OK;

      74                 : }

Generated by: LCOV version 1.7