|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MT_AiStrParser_H |
|
20 #define MT_AiStrParser_H |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 |
|
27 |
|
28 #include <e32def.h> |
|
29 #ifndef NONSHARABLE_CLASS |
|
30 #define NONSHARABLE_CLASS(x) class x |
|
31 #endif |
|
32 |
|
33 class MAiStrParser; |
|
34 |
|
35 // CLASS DEFINITION |
|
36 /** |
|
37 * |
|
38 * EUnitWizard generated test class. |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS( MT_AiStrParser ) |
|
42 : public CEUnitTestSuiteClass |
|
43 { |
|
44 public: // Constructors and destructors |
|
45 |
|
46 /** |
|
47 * Two phase construction |
|
48 */ |
|
49 static MT_AiStrParser* NewL(); |
|
50 static MT_AiStrParser* NewLC(); |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~MT_AiStrParser(); |
|
55 |
|
56 private: // Constructors and destructors |
|
57 |
|
58 MT_AiStrParser(); |
|
59 void ConstructL(); |
|
60 |
|
61 public: // From observer interface |
|
62 |
|
63 |
|
64 |
|
65 private: // New methods |
|
66 |
|
67 void SetupL(); |
|
68 |
|
69 void SetupUtf8BufferL(); |
|
70 |
|
71 void SetupUnicodeBufferL(); |
|
72 |
|
73 void SetupHexIntL(); |
|
74 |
|
75 void SetupIntL(); |
|
76 |
|
77 void SetupNoIntL(); |
|
78 |
|
79 void SetupHexIntUnicodeL(); |
|
80 |
|
81 void SetupIntUnicodeL(); |
|
82 |
|
83 void SetupNoIntUnicodeL(); |
|
84 |
|
85 void Teardown(); |
|
86 |
|
87 void TestCopyUnicodeToUnicodeL(); |
|
88 |
|
89 void TestCopyUnicodeToUtf8L(); |
|
90 |
|
91 void TestCopyUtf8ToUnicodeL(); |
|
92 |
|
93 void TestCopyUtf8ToUtf8L(); |
|
94 |
|
95 void TestParseInt(); |
|
96 |
|
97 void TestParseIntUnicode(); |
|
98 |
|
99 private: // Data |
|
100 |
|
101 EUNIT_DECLARE_TEST_TABLE; |
|
102 |
|
103 HBufC* iUnicodeBuffer; |
|
104 |
|
105 HBufC8* iUtf8Buffer; |
|
106 |
|
107 TInt iTestResult; |
|
108 |
|
109 TInt32 iTestValue; |
|
110 |
|
111 MAiStrParser* iStrParser; |
|
112 }; |
|
113 |
|
114 #endif // __UT_ActiveTransactionStack_H__ |
|
115 |
|
116 // End of file |