|
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 CTESTIMAPFETCHSINGLEBODYSTRUCTURE_H |
|
17 #define CTESTIMAPFETCHSINGLEBODYSTRUCTURE_H |
|
18 |
|
19 #include "ctestimapcommandbase.h" |
|
20 #include "cimapenvelope.h" |
|
21 // Forward Declarations |
|
22 class CFakeInputStream; |
|
23 class CFakeOutputStream; |
|
24 class CActiveWaiter; |
|
25 class CImapSession; |
|
26 |
|
27 /** |
|
28 This test fixture tests CImapFetchSingleBodyStructure. |
|
29 @internalTechnology |
|
30 @prototype |
|
31 */ |
|
32 class CTestImapFetchSingleBodyStructure : public CTestImapCommandBase |
|
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 |
|
39 CTestImapFetchSingleBodyStructure(); |
|
40 ~CTestImapFetchSingleBodyStructure(); |
|
41 |
|
42 TBool DescriptorsMatch(const TDesC8& aFirst, const TDesC8& aSecond); |
|
43 |
|
44 // Tests |
|
45 void TestTextBodyFetchL(); |
|
46 void TestBasicBodyFetchL(); |
|
47 void TestRFC822BodyFetchL(); |
|
48 void TestMultipartL(); |
|
49 void TestPipexFetchL(); |
|
50 |
|
51 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
52 void CheckAddressL(const CImapEnvelope::TAddress& aAddress, const TDesC16& aExpectedAddressString); |
|
53 private: |
|
54 |
|
55 }; |
|
56 |
|
57 #endif CTESTIMAPFETCHSINGLEBODYSTRUCTURE_H |