LCOV - code coverage report
Current view: top level - dom/media/webspeech/synth/test - FakeSynthModule.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       3             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : #include "mozilla/ModuleUtils.h"
       6             : #include "nsIClassInfoImpl.h"
       7             : 
       8             : #include "nsFakeSynthServices.h"
       9             : 
      10             : using namespace mozilla::dom;
      11             : 
      12             : #define FAKESYNTHSERVICE_CID \
      13             :   {0xe7d52d9e, 0xc148, 0x47d8, {0xab, 0x2a, 0x95, 0xd7, 0xf4, 0x0e, 0xa5, 0x3d}}
      14             : 
      15             : #define FAKESYNTHSERVICE_CONTRACTID "@mozilla.org/fakesynth;1"
      16             : 
      17             : // Defines nsFakeSynthServicesConstructor
      18           0 : NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsFakeSynthServices,
      19             :                                          nsFakeSynthServices::GetInstanceForService)
      20             : 
      21             : // Defines kFAKESYNTHSERVICE_CID
      22             : NS_DEFINE_NAMED_CID(FAKESYNTHSERVICE_CID);
      23             : 
      24             : static const mozilla::Module::CIDEntry kCIDs[] = {
      25             :   { &kFAKESYNTHSERVICE_CID, true, nullptr, nsFakeSynthServicesConstructor },
      26             :   { nullptr }
      27             : };
      28             : 
      29             : static const mozilla::Module::ContractIDEntry kContracts[] = {
      30             :   { FAKESYNTHSERVICE_CONTRACTID, &kFAKESYNTHSERVICE_CID },
      31             :   { nullptr }
      32             : };
      33             : 
      34             : static const mozilla::Module::CategoryEntry kCategories[] = {
      35             :   { "speech-synth-started", "Fake Speech Synth", FAKESYNTHSERVICE_CONTRACTID },
      36             :   { nullptr }
      37             : };
      38             : 
      39             : static void
      40           0 : UnloadFakeSynthmodule()
      41             : {
      42           0 :   nsFakeSynthServices::Shutdown();
      43           0 : }
      44             : 
      45             : static const mozilla::Module kModule = {
      46             :   mozilla::Module::kVersion,
      47             :   kCIDs,
      48             :   kContracts,
      49             :   kCategories,
      50             :   nullptr,
      51             :   nullptr,
      52             :   UnloadFakeSynthmodule
      53             : };
      54             : 
      55             : NSMODULE_DEFN(fakesynth) = &kModule;

Generated by: LCOV version 1.13