|
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 __CTESTIMAPATOMBUILDER_H__ |
|
17 #define __CTESTIMAPATOMBUILDER_H__ |
|
18 |
|
19 #include <test/tefunit.h> |
|
20 |
|
21 |
|
22 // Forward Declarations |
|
23 class CImapAtomParser; |
|
24 class CImapAtom; |
|
25 class CImapBodyStructureBuilder; |
|
26 class CImapFetchResponse; |
|
27 |
|
28 /** |
|
29 This test fixture tests CImapAtomParser and CImapAtomWalker. |
|
30 @internalTechnology |
|
31 @prototype |
|
32 */ |
|
33 class CTestImapAtomBuilder : public CTestFixture |
|
34 // Note that all test suites must begin with "CTest" |
|
35 // WARNING: Despite being a C class, CTestFixture 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 CTestImapAtomBuilder(); |
|
41 virtual ~CTestImapAtomBuilder(); |
|
42 |
|
43 // SetUp and TearDown code (optional) |
|
44 virtual void SetupL(); |
|
45 virtual void TearDownL(); |
|
46 |
|
47 // Tests |
|
48 void TestAtomParserL(); |
|
49 void TestWalkerL(); |
|
50 |
|
51 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
52 |
|
53 private: |
|
54 void DumpAtomTreeL(CImapAtom* aRoot); |
|
55 |
|
56 private: |
|
57 CImapAtomParser* iAtomParser; |
|
58 }; |
|
59 |
|
60 #endif __CTESTIMAPATOMBUILDER_H__ |