|         |      1 // Copyright (c) 2008-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 CTESTIMAPAUTHENTICATE_H | 
|         |     17 #define CTESTIMAPAUTHENTICATE_H | 
|         |     18  | 
|         |     19 #include <test/tefunit.h> | 
|         |     20 #include <cemailaccounts.h> | 
|         |     21 #include "emailtestutils.h" | 
|         |     22 #include "cimapsession.h" | 
|         |     23 #include "cimapsettings.h" | 
|         |     24  | 
|         |     25  | 
|         |     26 // Forward Declarations | 
|         |     27 class CFakeInputStream; | 
|         |     28 class CFakeOutputStream; | 
|         |     29 class CActiveWaiter; | 
|         |     30 class CImapSession; | 
|         |     31 class CImapAuthMechanismHelper; | 
|         |     32 class CMsvServer; | 
|         |     33 /** | 
|         |     34 This test fixture tests CImapList. | 
|         |     35 @internalTechnology | 
|         |     36 @prototype | 
|         |     37 */ | 
|         |     38 class CTestImapAuthenticate : public CActiveTestFixture | 
|         |     39 // Note that all test suites must begin with "CTest" | 
|         |     40 // WARNING: Despite being a C class, CActiveTestFixture is NOT derrived from CBase | 
|         |     41 // ... so don't expect your data members to be zero'ed | 
|         |     42 	{ | 
|         |     43 public: | 
|         |     44 	// Constructor & Destructor (explicitly virtual because CTestFixture is NOT derrived from CBase) | 
|         |     45 	CTestImapAuthenticate(); | 
|         |     46 	virtual ~CTestImapAuthenticate(); | 
|         |     47 	 | 
|         |     48 	// SetUp and TearDown code (optional) | 
|         |     49 	virtual void SetupL(); | 
|         |     50 	virtual void TearDownL(); | 
|         |     51  | 
|         |     52 	// Tests | 
|         |     53 	void TestAuthwithCramMd5L(); | 
|         |     54 	void TestAuthwithPlainL(); | 
|         |     55 	void TestAuthwithLoginL(); | 
|         |     56 	void DoCreateImapAccountL( ); | 
|         |     57 	static CTestSuite* CreateSuiteL(const TDesC& aName); | 
|         |     58 	 | 
|         |     59 private: | 
|         |     60 	CFakeInputStream* iInputStream; | 
|         |     61 	CFakeOutputStream* iOutputStream; | 
|         |     62 	CActiveWaiter* iActiveWaiter; | 
|         |     63 	CImapSession* iImapSession; | 
|         |     64 	CImapSettings*  iImapSettings; | 
|         |     65 	CMsvServerEntry* iEntry; | 
|         |     66 	CBaseServerMtm*		iImapServerMtm; | 
|         |     67 	CMsvServer*		 iMsvServer; | 
|         |     68 	CImapMailStore*  iImapMailStore; | 
|         |     69 	TMsvId iServiceId ; | 
|         |     70 	CEmailAccounts* 	iAccounts; | 
|         |     71 	TImapAccount 		iImapAccount; | 
|         |     72 	 | 
|         |     73 	 | 
|         |     74 	}; | 
|         |     75 	 | 
|         |     76 #endif //CTestImapAuthenticate_H |