|
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 CTESTIMAPFETCHFLAGS_H |
|
17 #define CTESTIMAPFETCHFLAGS_H |
|
18 |
|
19 #include <test/tefunit.h> |
|
20 #include "tmessageflaginfo.h" |
|
21 |
|
22 // Forward Declarations |
|
23 class CFakeInputStream; |
|
24 class CFakeOutputStream; |
|
25 class CActiveWaiter; |
|
26 class CImapSession; |
|
27 |
|
28 /** |
|
29 This test fixture tests CImapFetchFlags. |
|
30 @internalTechnology |
|
31 @prototype |
|
32 */ |
|
33 class CTestImapFetchFlags : public CActiveTestFixture |
|
34 // Note that all test suites must begin with "CTest" |
|
35 // WARNING: Despite being a C class, CActiveTestFixture is NOT derrived from CBase |
|
36 // ... so don't expect your data members to be zero'ed |
|
37 { |
|
38 public: |
|
39 // Constructor & Destructor (explicitly virtual because CTestFixture is NOT derrived from CBase) |
|
40 CTestImapFetchFlags(); |
|
41 virtual ~CTestImapFetchFlags(); |
|
42 |
|
43 // SetUp and TearDown code (optional) |
|
44 virtual void SetupL(); |
|
45 virtual void TearDownL(); |
|
46 |
|
47 // Tests |
|
48 void TestFetchFlagsWithFlagsL(); |
|
49 void TestFetchFlagsWithUnknownExtensionFlagsL(); |
|
50 void TestFetchFlagsWithMissingUidL(); |
|
51 void TestFetchFlagsCorruptMissingFlagsL(); |
|
52 void TestFetchFlagsCorruptNoDataItemsL(); |
|
53 void TestFetchFlagsCorruptNoFetchDataL(); |
|
54 void TestFetchFlagsCorruptMismatchedTagL(); |
|
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 //CTESTIMAPFETCHFLAGS_H |