|
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 CTESTPOPSASLAUTHHELPER_H |
|
17 #define CTESTPOPSASLAUTHHELPER_H |
|
18 |
|
19 //#include <tefunit.h> |
|
20 //#include "scripttestutils.h" |
|
21 #include "emailtestutils.h" |
|
22 #include <cemailaccounts.h> |
|
23 #include <popsmtm.h> |
|
24 #include <iapprefs.h> |
|
25 #include "miutmsg.h" |
|
26 #include "cpopsaslauthhelper.h" |
|
27 #include "cactivewaiter.h" |
|
28 |
|
29 |
|
30 class CTestPopSaslAuthHelper : public CActiveTestFixture |
|
31 // WARNING: Despite being a C class, CActiveTestFixture is NOT derrived from CBase |
|
32 // ... so don't expect your data members to be zero'ed |
|
33 { |
|
34 public: |
|
35 CTestPopSaslAuthHelper(); |
|
36 virtual ~CTestPopSaslAuthHelper(); |
|
37 void SetupL(); |
|
38 void TearDownL(); |
|
39 |
|
40 void CreatePopSaslAuthMechanismL(); |
|
41 void CreatePopTestAccountL(); |
|
42 void ConnectToRemoteServerL(); |
|
43 void TestForAuthCramMd5L(); |
|
44 void TestForAuthLoginL(); |
|
45 void TestForAuthPlainL(); |
|
46 void DisconnectL(); |
|
47 |
|
48 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
49 |
|
50 private: |
|
51 CEmailTestUtils* iTestUtils; |
|
52 CEmailAccounts* iEmailAccount; |
|
53 CImPop3Settings* iPopSettings ; |
|
54 TMsvId iPop3Service; |
|
55 TPop3Cmds iCommand; |
|
56 TPopAccount iPop3AccountId; |
|
57 CActiveWaiter* iActiveWaiter; |
|
58 CBaseServerMtm* iPopServerMtm; |
|
59 CMsvEntrySelection* iEntrySelection; |
|
60 |
|
61 CPopAuthMechanismHelper* iTestPopAuthMechanism; |
|
62 HBufC8* iResponseBuffer; |
|
63 //TBuf8<KImMailMaxBufferSize> iResponseBuffer; |
|
64 }; |
|
65 |
|
66 #endif // CTESTPOPSASLAUTHHELPER_H |