|
1 // Copyright (c) 2006-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 CTESTIMAPSELECT_H |
|
17 #define CTESTIMAPSELECT_H |
|
18 |
|
19 #include <test/tefunit.h> |
|
20 |
|
21 // Forward Declarations |
|
22 class CFakeInputStream; |
|
23 class CFakeOutputStream; |
|
24 class CActiveWaiter; |
|
25 class CImapSession; |
|
26 |
|
27 /** |
|
28 This test fixture tests CImapNoop. |
|
29 @internalTechnology |
|
30 @prototype |
|
31 */ |
|
32 class CTestImapSelect : public CActiveTestFixture |
|
33 // Note that all test suites must begin with "CTest" |
|
34 // WARNING: Despite being a C class, CActiveTestFixture is NOT derrived from CBase |
|
35 // ... so don't expect your data members to be zero'ed |
|
36 { |
|
37 public: |
|
38 // Constructor & Destructor (explicitly virtual because CTestFixture is NOT derrived from CBase) |
|
39 CTestImapSelect(); |
|
40 virtual ~CTestImapSelect(); |
|
41 |
|
42 // SetUp and TearDown code (optional) |
|
43 virtual void SetupL(); |
|
44 virtual void TearDownL(); |
|
45 |
|
46 // Tests |
|
47 void TestSelectBasicL(); |
|
48 void TestSelectCorruptNo2ndPartL(); |
|
49 void TestSelectUntaggedNoL(); |
|
50 void TestSelectCorruptNoResponseTextCodeL(); |
|
51 void TestSelectCorruptEmptyResponseCodeTextL(); |
|
52 void TestSelectCorruptNoFlagsL(); |
|
53 void TestSelectCorruptFlagMissingCloseBracketL(); |
|
54 void TestSelectCorruptTaggedOkWrongResponseCodeL(); |
|
55 |
|
56 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
57 |
|
58 private: |
|
59 CFakeInputStream* iInputStream; |
|
60 CFakeOutputStream* iOutputStream; |
|
61 CActiveWaiter* iActiveWaiter; |
|
62 CImapSession* iImapSession; |
|
63 }; |
|
64 |
|
65 #endif // CTESTIMAPSELECT_H |