|
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 CTESTIMAPLOGOUT_H |
|
17 #define CTESTIMAPLOGOUT_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 CImapLogout. |
|
29 @internalTechnology |
|
30 @prototype |
|
31 */ |
|
32 class CTestImapLogout : 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 CTestImapLogout(); |
|
40 virtual ~CTestImapLogout(); |
|
41 |
|
42 // SetUp and TearDown code (optional) |
|
43 virtual void SetupL(); |
|
44 virtual void TearDownL(); |
|
45 |
|
46 // Tests |
|
47 void TestSimpleLogoutL(); |
|
48 void TestLogoutWithByeL(); |
|
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 CTESTIMAPLOGOUT_H |