LCOV - code coverage report
Current view: top level - toolkit/components/printingui/ipc - PrintSettingsDialogChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 15 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 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 "PrintSettingsDialogChild.h"
       6             : 
       7             : using mozilla::Unused;
       8             : 
       9             : namespace mozilla {
      10             : namespace embedding {
      11             : 
      12           0 : PrintSettingsDialogChild::PrintSettingsDialogChild()
      13           0 : : mReturned(false)
      14             : {
      15           0 :   MOZ_COUNT_CTOR(PrintSettingsDialogChild);
      16           0 : }
      17             : 
      18           0 : PrintSettingsDialogChild::~PrintSettingsDialogChild()
      19             : {
      20           0 :   MOZ_COUNT_DTOR(PrintSettingsDialogChild);
      21           0 : }
      22             : 
      23             : mozilla::ipc::IPCResult
      24           0 : PrintSettingsDialogChild::Recv__delete__(const PrintDataOrNSResult& aData)
      25             : {
      26           0 :   if (aData.type() == PrintDataOrNSResult::Tnsresult) {
      27           0 :     mResult = aData.get_nsresult();
      28           0 :     MOZ_ASSERT(NS_FAILED(mResult), "expected a failure result");
      29             :   } else {
      30           0 :     mResult = NS_OK;
      31           0 :     mData = aData.get_PrintData();
      32             :   }
      33           0 :   mReturned = true;
      34           0 :   return IPC_OK();
      35             : }
      36             : 
      37             : } // namespace embedding
      38             : } // namespace mozilla

Generated by: LCOV version 1.13