commonappservices/alarmserver/Test/unit/src/TEAlarmTestSilentStep.cpp
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "TEAlarmTestSilentStep.h"
       
    17 
       
    18 _LIT(KInitialUTC, "InitialUTC");
       
    19 _LIT(KMoveToUTC, "MoveToUTC");
       
    20 
       
    21 TVerdict CTEAlarmTestSilentStep::doTestStepPreambleL()
       
    22 	{
       
    23 	SetTestStepResult(EPass);
       
    24 
       
    25 	TVerdict verdict = CTEAlarmTestStepBase::doTestStepPreambleL();
       
    26 	if(verdict != EPass)
       
    27 		{
       
    28 		SetTestStepResult(verdict);
       
    29 		return TestStepResult();
       
    30 		}
       
    31 
       
    32 	if (!GetOffsetFromConfig(ConfigSection(), KInitialUTC, iInitialUTC))
       
    33 		{
       
    34 		SetTestStepResult(EFail);
       
    35 		return TestStepResult();
       
    36 		}
       
    37 
       
    38 	if (!GetOffsetFromConfig(ConfigSection(), KMoveToUTC, iMoveToUTC))
       
    39 		{
       
    40 		SetTestStepResult(EFail);
       
    41 		return TestStepResult();
       
    42 		}
       
    43 
       
    44 	return TestStepResult();
       
    45 	}
       
    46 
       
    47 TVerdict CTEAlarmTestSilentStep::doTestStepPostambleL()
       
    48 	{
       
    49 	TVerdict verdict = CTEAlarmTestStepBase::doTestStepPostambleL();
       
    50 	if(verdict != EPass)
       
    51 		{
       
    52 		SetTestStepResult(verdict);
       
    53 		return TestStepResult();
       
    54 		}
       
    55 	return TestStepResult();
       
    56 	}