messagingfw/scheduledsendmtm/test/unit/inc/t_schsend.h
author William Roberts <williamr@symbian.org>
Thu, 17 Jun 2010 11:58:38 +0100
branchGCC_SURGE
changeset 26 1347d5cca6af
parent 0 8e480a14352b
permissions -rw-r--r--
Three more wrongly selected DEF files - Bug 3005

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

#include "t_schsendutils.h"

class TMsvSchedulePackage;

class CSchSendTest : public CSchSendTestUtils
	{
	public:
		static CSchSendTest* NewL(RTest& aTest);

	protected:

		CSchSendTest(RTest& aTest);

		void ShowMenuL() {RunAutoL();}
		void RunAutoL();
		void TestPackageL();
		void TestPackageL(const TMsvSchedulePackage& aPackage);

		void TestSendErrorActionsL();
		void TestSendErrorActions1L();
		void TestSendErrorActions2L();
		void TestSendErrorActions3L();
		void TestSendErrorActions4L();
		void TestSendErrorActions5L();

		void TestDefaultL();
		void TestErrorsL();
		void TestStoringL();
		void TestRemovingL();

		void TestOffPeakTimesL();
		void TestOffPeakTimes1L();
		void TestOffPeakTimes2L();
		void TestOffPeakTimes3L();

		void TestSysAgentActionsL();

		void TestSchedulingMessagesL();
		void TestSchedulingOffPeakMessagesL();
		void TestSchedulingOldMessagesL();
		void TestSchedulingBadMessagesL();
		void TestSchedulingMessagesTwiceL();
		void TestReschedulingMessagesL();
		void TestReschedulingNonScheduledMessagesL();
		void TestDeletingMessagesL();
		void TestDeletingNonScheduledMessagesL();
		void TestCheckScheduleL();
	
		void TestScheduleSettingsL();

		TBool DoTest(void (CSchSendTest::*aTest)(), TPtrC aText);
		TBool HeapTest(void (CSchSendTest::*test)(), TPtrC aText);

		const TSchSendTestProgress& TestL(TSchSendTestOperation aOp, CMsvEntrySelection& aSel, TBool aBool = EFalse);
	};