/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
/**
@file CTestSuiteD.cpp
*/
#include "CTestSuiteD.h"
#include "CTestAsyncSuiteA.h"
void CTestSuiteD::SetupL()
/**
* SetupL
*/
{
}
void CTestSuiteD::TearDownL()
/**
* TearDownL
*/
{
}
void CTestSuiteD::TestOne()
/**
* TestOne
*/
{
INFO_PRINTF1(_L("Running SuiteD:One"));
TInt theInt = 0;
TBool res = iConfig.GetInt(_L("TheInt"),theInt);
ASSERT_TRUE( res );
TBool theBool = EFalse;
res = iConfig.GetBool(_L("TheBool"), theBool);
ASSERT_TRUE( res );
INFO_PRINTF3(_L("TheInt = %d The Bool = %d"),theInt,theBool);
}
void CTestSuiteD::TestTwo()
/**
* TestTwo
*/
{
INFO_PRINTF1(_L("Running SuiteD:Two"));
TInt theInt = 0;
TBool res = iConfig.GetInt(_L("TheInt"),theInt);
ASSERT_TRUE( res );
TBool theBool = EFalse;
res = iConfig.GetBool(_L("TheBool"), theBool);
ASSERT_TRUE( res );
INFO_PRINTF3(_L("TheInt = %d The Bool = %d"),theInt,theBool);
}
CTestSuite* CTestSuiteD::CreateSuiteL( const TDesC& aName )
/**
* CreateSuiteL
*
* @param aName - Suite name
* @return - Suite
*/
{
SUB_SUITE;
#ifndef __GCCXML__
ADD_TEST_STEP( TestOne );
ADD_TEST_STEP( TestTwo );
#endif
#ifdef __GCCXML__
ADD_TEST_STEP_CLASS( CTestSuiteD, TestOne );
ADD_TEST_STEP_CLASS( CTestSuiteD, TestTwo );
#endif
ADD_TEST_SUITE( CTestAsyncSuiteA )
END_SUITE;
}