|
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 CTESTIMAPCOMMANDBASE_H |
|
17 #define CTESTIMAPCOMMANDBASE_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 Base class for tests fixtures that test CImapCommands |
|
29 @internalTechnology |
|
30 @prototype |
|
31 */ |
|
32 class CTestImapCommandBase : 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 |
|
39 // SetUp and TearDown code (optional) |
|
40 virtual void SetupL(); |
|
41 virtual void TearDownL(); |
|
42 |
|
43 protected: |
|
44 // Constructor & Destructor (explicitly virtual because CTestFixture is NOT derrived from CBase) |
|
45 CTestImapCommandBase(); |
|
46 virtual ~CTestImapCommandBase(); |
|
47 |
|
48 protected: |
|
49 CFakeInputStream* iInputStream; |
|
50 CFakeOutputStream* iOutputStream; |
|
51 CActiveWaiter* iActiveWaiter; |
|
52 CImapSession* iImapSession; |
|
53 }; |
|
54 |
|
55 #endif CTESTIMAPLOGOUT_H |