LCOV - code coverage report
Current view: top level - layout/base - LayoutLogging.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 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
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : // Chromium headers must come before Mozilla headers.
       7             : #include "base/process_util.h"
       8             : 
       9             : #include "LayoutLogging.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace detail {
      13             : 
      14           0 : void LayoutLogWarning(const char* aStr, const char* aExpr,
      15             :                       const char* aFile, int32_t aLine)
      16             : {
      17           0 :   if (aExpr) {
      18           0 :     MOZ_LOG(sLayoutLog,
      19             :             mozilla::LogLevel::Warning,
      20             :             ("[%d] WARNING: %s: '%s', file %s, line %d",
      21             :              base::GetCurrentProcId(),
      22             :              aStr, aExpr, aFile, aLine));
      23             :   } else {
      24           0 :     MOZ_LOG(sLayoutLog,
      25             :             mozilla::LogLevel::Warning,
      26             :             ("[%d] WARNING: %s: file %s, line %d",
      27             :              base::GetCurrentProcId(),
      28             :              aStr, aFile, aLine));
      29             :   }
      30           0 : }
      31             : 
      32             : } // namespace detail
      33             : } // namespace mozilla

Generated by: LCOV version 1.13