commsconfig/commsdatabaseshim/TE_commdb/te_connpref/src/TE_ConnPrefHelperSteps.cpp
changeset 72 ae47d0499bee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/commsconfig/commsdatabaseshim/TE_commdb/te_connpref/src/TE_ConnPrefHelperSteps.cpp	Mon Sep 06 13:49:23 2010 +0100
@@ -0,0 +1,52 @@
+//
+// 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