tools/code-coverage/nsCodeCoverageFactory.cpp
author Dorel Luca <dluca@mozilla.com>
Tue, 12 Dec 2017 06:33:18 +0200
changeset 447808 4a6655fb34175c4bbbe95a4362e111d234813767
parent 419207 c7686d42d8ad3c6c8d1874ef074775c93f3660ab
child 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Backed out 4 changesets (bug 1424651) as requested by tomprice r=backout on a CLOSED TREE Backed out changeset 10ebf78f32bb (bug 1424651) Backed out changeset 746d96792d18 (bug 1424651) Backed out changeset 6038fb7b458c (bug 1424651) Backed out changeset 189fd4f1df41 (bug 1424651)

/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "mozilla/ModuleUtils.h"
#include "nsCOMPtr.h"
#include "nsCodeCoverage.h"

NS_GENERIC_FACTORY_CONSTRUCTOR(nsCodeCoverage)

NS_DEFINE_NAMED_CID(NS_CODECOVERAGE_CID);

static const mozilla::Module::CIDEntry kCodeCoverageCIDs[] = {
    { &kNS_CODECOVERAGE_CID, false, nullptr, nsCodeCoverageConstructor },
    { nullptr }
};

static const mozilla::Module::ContractIDEntry kCodeCoverageContracts[] = {
    { "@mozilla.org/tools/code-coverage;1", &kNS_CODECOVERAGE_CID },
    { nullptr }
};

static const mozilla::Module kCodeCoverageModule = {
    mozilla::Module::kVersion,
    kCodeCoverageCIDs,
    kCodeCoverageContracts
};

NSMODULE_DEFN(nsCodeCoverageModule) = &kCodeCoverageModule;