CTC++ Coverage Report - Execution Profile    #2/6

Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Index | No Index


File: N:\myprogram\forrrelease1\oodmonitor\tsrc\ut_oodmonitorv1\src\mockshutdowneventobserver.cpp
Instrumentation mode: function
TER: 67 % ( 4/ 6)

Start/ End/    
True False - Line Source

  1 /*
  2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
  3 * All rights reserved.
  4 * This component and the accompanying materials are made available
  5 * under the terms of "Eclipse Public License v1.0"
  6 * which accompanies this distribution, and is available
  7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8 *
  9 * Initial Contributors:
  10 * Nokia Corporation - initial contribution.
  11 *
  12 * Contributors:
  13 
  14 * Description:
  15 *
  16 */
  17 
  18 #include <e32debug.h>
  19 #include <e32property.h>
  20 
  21 #include "mockshutdowneventobserver.h"
  22 #include "ut_oodmonitor_const.h"
  23 
Top
  24 ShutdownEventObserver::ShutdownEventObserver()
  25     {
  26 
  27     }
  28 
Top
  29 ShutdownEventObserver::~ShutdownEventObserver()
  30     {
  31 
  32     }
  33 
Top
  34 void ShutdownEventObserver::HandleShutdownEventL(MSaveObserver::TSaveType aAction,TBool aPowerOff, TPowerState aEvent)
  35     {
  36     if((MSaveObserver::ESaveData == aAction) && aPowerOff)
  37         {
  38         TInt err;
  39         err=RProperty::Set(KUTSysApPropertyCategory, KHandleShutdownEventKey, KHandleShutdownEventValue1);
  40         RDebug::Print(_L("CLafShutdownManager:: err=%d"),err);
  41         }
  42     }
  43 
Top
- 44 CArrayFix<TThreadId>* ShutdownEventObserver::ClientArrayLC()
  45     {
  46     return (CArrayFix<TThreadId>*)NULL;
  47     }
  48 
Top
- 49 TBool ShutdownEventObserver::IsClientHung(TThreadId aId) const
  50     {
  51     return ETrue;
  52     }
  53 
Top
  54 void ShutdownEventObserver::GetShutdownState(TBool& aPowerOff, TBool& aAllSessionsHavePendingRequest) const
  55     {
  56     if(aAllSessionsHavePendingRequest && aPowerOff)
  57         {
  58         TInt err;
  59         err=RProperty::Set(KUTSysApPropertyCategory, KGetShutdownStateKey, KGetShutdownStateValue1);
  60         RDebug::Print(_L("CLafShutdownManager:: err=%d"),err);
  61         }
  62     }
***TER 67% (4/6) of SOURCE FILE mockshutdowneventobserver.cpp

Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index