email/pop3andsmtpmtm/imapservermtm/test/inc/T_DEF059571_IMAP_MissingOffsetStep.h
changeset 25 84d9eb65b26f
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
       
     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 #ifndef __T_DEF059571_IMAP_MISSINGOFFSETSTEP_H__
       
    17 #define __T_DEF059571_IMAP_MISSINGOFFSETSTEP_H__
       
    18  
       
    19 #include <test\testexecutestepbase.h>
       
    20 #include "emailtestutils.h"
       
    21 #include "smstestutils.h"
       
    22 #include <stdlib.h>
       
    23 #include <msvapi.h>
       
    24 #include <smuthdr.h> 
       
    25 #include <iapprefs.h>
       
    26 #include "t_def059571_imap_missingoffsetserver.h"
       
    27 #include "t_def059571_imap_client.h"
       
    28 
       
    29 /**
       
    30 @SYMTestCaseID DEF059571
       
    31 @SYMTestType UT
       
    32 @SYMTestPriority High
       
    33 @SYMDEF DEF059571
       
    34 @SYMTestCaseDependencies SpoofServer.dll
       
    35 @SYMTestCaseDesc IMAP Test of fetch response with no offset parameter and html content
       
    36 @SYMTestActions 
       
    37 Downloads an email message from spoof server simulating a fetch response with no offset 
       
    38 parameter and HTML content bodytext, 1st character of which is "<"
       
    39 Verifies that the messages where successfully fetched.
       
    40 @SYMTestExpectedResults The message should be correctly fetched.
       
    41 */
       
    42 
       
    43 //
       
    44 // CTestImapMissingOffsetStep
       
    45 //
       
    46 
       
    47 class CTestImapMissingOffsetStep : public CTestStep , MImapTestEventHandler
       
    48 	{
       
    49 public:
       
    50 	CTestImapMissingOffsetStep();
       
    51 	~CTestImapMissingOffsetStep();
       
    52 	virtual TVerdict doTestStepPreambleL();
       
    53 	virtual TVerdict doTestStepPostambleL();
       
    54 	virtual TVerdict doTestStepL();
       
    55 private:
       
    56 	void GetDetailsFromIniFileL();
       
    57 	void CreateImapAccountL();
       
    58 	void PrintEntryTime(TTime* aTIme);
       
    59 	TInt GetEntryCountL();
       
    60 	virtual void TestComplete(TInt aErrorCode);
       
    61 	
       
    62 private:
       
    63 	CSpoofServer* iSpoofServer;
       
    64 	CActiveImapClient* iImapClient;
       
    65 	CConsoleBase* iConsole;
       
    66 	CActiveScheduler* iScheduler;
       
    67 	TMsvId	iImapService;
       
    68 	CEmailTestUtils* iTestUtils;
       
    69 	CMsvSession* iSession;
       
    70 	TInt iMessageEntryCount;
       
    71 	TDummySessionObserver* iSessionObserver;
       
    72 	TPtrC16 iScriptFile;
       
    73 	TInt iExpectedEntryCount;
       
    74 	};
       
    75 
       
    76  		
       
    77 _LIT(KTestImapMissingOffset,"TestImapMissingOffset");
       
    78 	
       
    79 #endif  //__T_DEF059571_IMAP_MISSINGOFFSETSTEP_H__