|
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 CTESTIMAPSTORE_H |
|
17 #define CTESTIMAPSTORE_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 CImapStore. |
|
30 @internalTechnology |
|
31 @prototype |
|
32 */ |
|
33 class CTestImapStore : 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 CTestImapStore(); |
|
41 virtual ~CTestImapStore(); |
|
42 |
|
43 // SetUp and TearDown code (optional) |
|
44 virtual void SetupL(); |
|
45 virtual void TearDownL(); |
|
46 |
|
47 // Tests |
|
48 void TestStoreWithFlagsL(); |
|
49 |
|
50 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
51 |
|
52 private: |
|
53 CFakeInputStream* iInputStream; |
|
54 CFakeOutputStream* iOutputStream; |
|
55 CActiveWaiter* iActiveWaiter; |
|
56 CImapSession* iImapSession; |
|
57 }; |
|
58 |
|
59 #endif //CTESTIMAPSTORE_H |