LCOV - code coverage report
Current view: top level - modules/libjar/zipwriter - ZipWriterModule.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 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             : 
       6             : #include "mozilla/ModuleUtils.h"
       7             : #include "nsDeflateConverter.h"
       8             : #include "nsZipWriter.h"
       9             : 
      10           0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsDeflateConverter)
      11           0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsZipWriter)
      12             : 
      13             : NS_DEFINE_NAMED_CID(DEFLATECONVERTER_CID);
      14             : NS_DEFINE_NAMED_CID(ZIPWRITER_CID);
      15             : 
      16             : static const mozilla::Module::CIDEntry kZipWriterCIDs[] = {
      17             :   { &kDEFLATECONVERTER_CID, false, nullptr, nsDeflateConverterConstructor },
      18             :   { &kZIPWRITER_CID, false, nullptr, nsZipWriterConstructor },
      19             :   { nullptr }
      20             : };
      21             : 
      22             : static const mozilla::Module::ContractIDEntry kZipWriterContracts[] = {
      23             :   { "@mozilla.org/streamconv;1?from=uncompressed&to=deflate", &kDEFLATECONVERTER_CID },
      24             :   { "@mozilla.org/streamconv;1?from=uncompressed&to=gzip", &kDEFLATECONVERTER_CID },
      25             :   { "@mozilla.org/streamconv;1?from=uncompressed&to=x-gzip", &kDEFLATECONVERTER_CID },
      26             :   { "@mozilla.org/streamconv;1?from=uncompressed&to=rawdeflate", &kDEFLATECONVERTER_CID },
      27             :   { ZIPWRITER_CONTRACTID, &kZIPWRITER_CID },
      28             :   { nullptr }
      29             : };
      30             : 
      31             : static const mozilla::Module kZipWriterModule = {
      32             :   mozilla::Module::kVersion,
      33             :   kZipWriterCIDs,
      34             :   kZipWriterContracts
      35             : };
      36             : 
      37             : NSMODULE_DEFN(ZipWriterModule) = &kZipWriterModule;

Generated by: LCOV version 1.13