commsconfig/commsdatabaseshim/TE_commdb/te_connpref/src/TE_ConnPrefHelperSteps.cpp
author hgs
Mon, 06 Sep 2010 13:49:23 +0100
changeset 72 ae47d0499bee
permissions -rw-r--r--
201033_02

//
// Copyright (c) 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:
//
//

/**
 * 
 * Contains the implementation of the helper steps (initialisation and waiting
 * for esock to die)
 *
 */

#include "TE_ConnPrefHelperSteps.h"
////////////////////////////////////////////////////////////////////////////////

#include <e32base.h>
#include <e32std.h>
////////////////////////////////////////////////////////////////////////////////

CTE_ConnPrefForceCCoverWrite::CTE_ConnPrefForceCCoverWrite(TPtrC aName) : CTE_ConnPrefStep()
{
	SetTestStepName(aName);
}

CTE_ConnPrefForceCCoverWrite::~CTE_ConnPrefForceCCoverWrite()
{
}

enum TVerdict CTE_ConnPrefForceCCoverWrite::doTestStepL(void)
/*
 * It appears that CCover only writes to its data file every now and again, so force it here 
 * to write its data just before we shutdown and lose anything that has changed
 */
{
	#ifdef CCOVER
		cov_write();
	#endif

	return TestStepResult();
} // TS_ConnPrefHelperSteps