|
1 /* |
|
2 * Copyright (c) 2004 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 |
|
20 |
|
21 #ifndef __UT_TSTREAMDECODER_H__ |
|
22 #define __UT_TSTREAMDECODER_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class TStreamDecoder; |
|
32 |
|
33 #include <e32def.h> |
|
34 #ifndef NONSHARABLE_CLASS |
|
35 #define NONSHARABLE_CLASS(x) class x |
|
36 #endif |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * |
|
41 * EUnitWizard generated test class. |
|
42 * |
|
43 */ |
|
44 NONSHARABLE_CLASS( UT_TStreamDecoder ) |
|
45 : public CEUnitTestSuiteClass |
|
46 { |
|
47 public: // Constructors and destructors |
|
48 |
|
49 /** |
|
50 * Two phase construction |
|
51 */ |
|
52 static UT_TStreamDecoder* NewL(); |
|
53 static UT_TStreamDecoder* NewLC(); |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 ~UT_TStreamDecoder(); |
|
58 |
|
59 private: // Constructors and destructors |
|
60 |
|
61 UT_TStreamDecoder(); |
|
62 void ConstructL(); |
|
63 |
|
64 public: // From observer interface |
|
65 |
|
66 |
|
67 |
|
68 private: // New methods |
|
69 |
|
70 void SetupL(); |
|
71 |
|
72 void Teardown(); |
|
73 |
|
74 void UT_TStreamDecoder_InitializeL(); |
|
75 |
|
76 |
|
77 void UT_TStreamDecoder_DecodeL(); |
|
78 |
|
79 |
|
80 void UT_TStreamDecoder_Decode_1L(); |
|
81 |
|
82 |
|
83 void UT_TStreamDecoder_ByteIndexL(); |
|
84 |
|
85 |
|
86 void UT_TStreamDecoder_BitIndexL(); |
|
87 |
|
88 |
|
89 void UT_TStreamDecoder_SetByteIndexL(); |
|
90 |
|
91 |
|
92 void UT_TStreamDecoder_SetBitIndexL(); |
|
93 |
|
94 |
|
95 private: // Data |
|
96 |
|
97 EUNIT_DECLARE_TEST_TABLE; |
|
98 |
|
99 }; |
|
100 |
|
101 #endif // __UT_TSTREAMDECODER_H__ |
|
102 |
|
103 // End of file |