LCOV - code coverage report
Current view: top level - tools/code-coverage - CodeCoverageHandler.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       4             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #ifndef mozilla_codecoveragehandler_h
       7             : #define mozilla_codecoveragehandler_h
       8             : 
       9             : #include "mozilla/StaticPtr.h"
      10             : #include "mozilla/ipc/CrossProcessMutex.h"
      11             : 
      12             : using namespace mozilla::ipc;
      13             : 
      14             : namespace mozilla {
      15             : 
      16           0 : class CodeCoverageHandler {
      17             : public:
      18             :   static void Init();
      19             :   static void Init(const CrossProcessMutexHandle& aHandle);
      20             :   static CodeCoverageHandler* Get();
      21             :   CrossProcessMutex* GetMutex();
      22             :   CrossProcessMutexHandle GetMutexHandle(int aProcId);
      23             :   static void DumpCounters(int);
      24             :   static void ResetCounters(int);
      25             : 
      26             : private:
      27             :   CodeCoverageHandler();
      28             :   CodeCoverageHandler(const CrossProcessMutexHandle& aHandle);
      29             : 
      30             :   static StaticAutoPtr<CodeCoverageHandler> instance;
      31             :   CrossProcessMutex mGcovLock;
      32             : 
      33             :   DISALLOW_COPY_AND_ASSIGN(CodeCoverageHandler);
      34             : 
      35             :   void SetSignalHandlers();
      36             : };
      37             : 
      38             : }
      39             : 
      40             : #endif // mozilla_codecoveragehandler_h

Generated by: LCOV version 1.13