|
1 /* |
|
2 * Copyright (c) 2008-2009 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 the License "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 * CMDLINEHANDLERTEST class declaration. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CMDLINEHANDLERTEST_H |
|
21 #define CMDLINEHANDLERTEST_H |
|
22 |
|
23 #ifdef _MSC_VER |
|
24 #pragma warning(disable: 4786) |
|
25 #pragma warning(disable: 4503) |
|
26 #endif |
|
27 |
|
28 #include <cppunit/extensions/HelperMacros.h> |
|
29 |
|
30 #include "TestCase.h" |
|
31 #include "TestSuite.h" |
|
32 #include "TestCaller.h" |
|
33 |
|
34 |
|
35 class CTestCmdHandler : public CPPUNIT_NS::TestFixture |
|
36 { |
|
37 CPPUNIT_TEST_SUITE( CTestCmdHandler ); |
|
38 CPPUNIT_TEST( TestWithEmptyArugument ); |
|
39 CPPUNIT_TEST( TestWithWrongArugument ); |
|
40 CPPUNIT_TEST( TestWithInvalidImg ); |
|
41 CPPUNIT_TEST( TestWithGetReportFlag ); |
|
42 CPPUNIT_TEST( TestWithGetXmlReportName ); |
|
43 CPPUNIT_TEST( TestWithValidImg ); |
|
44 CPPUNIT_TEST( TestWithHelpOption ); |
|
45 CPPUNIT_TEST( TestWithInvalidOption ); |
|
46 CPPUNIT_TEST( TestWithVidlist_supressOption ); |
|
47 CPPUNIT_TEST( TestWithVidlist_supressOption1 ); |
|
48 CPPUNIT_TEST( TestWithAllOption ); |
|
49 CPPUNIT_TEST( TestForValidateArgumentNoImage ); |
|
50 CPPUNIT_TEST( TestForValidateArgument ); |
|
51 CPPUNIT_TEST( TestForValidateArgumentwithoutXMLoutput ); |
|
52 CPPUNIT_TEST( TestForValidateArgumentwithVIDVALandVIDsuppressed ); |
|
53 CPPUNIT_TEST( TestForValidateArgumentwithAllsuppressed ); |
|
54 CPPUNIT_TEST( TestForValidateArgumentwithValueExpected ); |
|
55 CPPUNIT_TEST( TestForValidateArgumentwithValueUnExpected ); |
|
56 CPPUNIT_TEST( TestForwithoutInput ); |
|
57 CPPUNIT_TEST( TestForValidateArgumentwithValueExpectedareMore ); |
|
58 CPPUNIT_TEST( TestVerbose ); |
|
59 CPPUNIT_TEST( TestSIDALLOption ); |
|
60 CPPUNIT_TEST( TestSIDALLandSuppressSIDOption ); |
|
61 CPPUNIT_TEST( TestUnknownOption ); |
|
62 CPPUNIT_TEST( TestInvalidVidListOption ); |
|
63 CPPUNIT_TEST( TestInvalidSupressOption ); |
|
64 CPPUNIT_TEST( TestEnableOption ); |
|
65 CPPUNIT_TEST( TestVidListOptionwithZeroValue ); |
|
66 CPPUNIT_TEST( TestVidListOptionwithinvalidValue ); |
|
67 CPPUNIT_TEST( TestVidListOptionwithinvalidValue1 ); |
|
68 CPPUNIT_TEST( TestDbgOptionwithinvalidValue ); |
|
69 CPPUNIT_TEST( TestDbgOptionwithoutValue ); |
|
70 CPPUNIT_TEST( Teste32inputOptionwithValue ); |
|
71 CPPUNIT_TEST( Teste32inputOptionwithimg ); |
|
72 CPPUNIT_TEST( Teste32inputOptionwithimg1 ); |
|
73 CPPUNIT_TEST( Teste32inputOptionwithinvalidoption ); |
|
74 CPPUNIT_TEST( Teste32inputOptionwithinvalidoption1 ); |
|
75 CPPUNIT_TEST( TestnocheckOptionwithinvalidoption ); |
|
76 CPPUNIT_TEST( TestnocheckOptionwithinvalidoption1 ); |
|
77 CPPUNIT_TEST( TestnocheckOptionwithinvalidoption2 ); |
|
78 CPPUNIT_TEST( TestnocheckOptionwithinvalidoption3 ); |
|
79 CPPUNIT_TEST( TestnocheckOptionwithNoChecksEnabled ); |
|
80 CPPUNIT_TEST( TestnocheckOptionwithNoChecksEnabled1 ); |
|
81 CPPUNIT_TEST( TesttocheckOptionwithNoImgandE32input ); |
|
82 CPPUNIT_TEST( TesttocheckOptionPrefix ); |
|
83 CPPUNIT_TEST( TesttocheckInvalidOption ); |
|
84 CPPUNIT_TEST( TesttocheckInvalidOption1 ); |
|
85 CPPUNIT_TEST( TesttocheckInvalidOption2 ); |
|
86 CPPUNIT_TEST_SUITE_END(); |
|
87 |
|
88 protected: |
|
89 |
|
90 void TestWithEmptyArugument(); |
|
91 void TestWithWrongArugument(); |
|
92 void TestWithInvalidImg(); |
|
93 void TestWithGetReportFlag(); |
|
94 void TestWithGetXmlReportName(); |
|
95 void TestWithValidImg(); |
|
96 void TestWithHelpOption(); |
|
97 void TestWithInvalidOption(); |
|
98 void TestWithVidlist_supressOption(); |
|
99 void TestWithVidlist_supressOption1(); |
|
100 void TestWithAllOption(); |
|
101 void TestForValidateArgumentNoImage(); |
|
102 void TestForValidateArgument(); |
|
103 void TestForValidateArgumentwithoutXMLoutput(); |
|
104 void TestForValidateArgumentwithVIDVALandVIDsuppressed(); |
|
105 void TestForValidateArgumentwithAllsuppressed(); |
|
106 void TestForValidateArgumentwithValueExpected(); |
|
107 void TestForValidateArgumentwithValueUnExpected(); |
|
108 void TestForwithoutInput(); |
|
109 void TestForValidateArgumentwithValueExpectedareMore(); |
|
110 void TestVerbose(); |
|
111 void TestSIDALLOption(); |
|
112 void TestSIDALLandSuppressSIDOption(); |
|
113 void TestUnknownOption(); |
|
114 void TestInvalidVidListOption(); |
|
115 void TestInvalidSupressOption(); |
|
116 void TestEnableOption(); |
|
117 void TestVidListOptionwithZeroValue(); |
|
118 void TestVidListOptionwithinvalidValue(); |
|
119 void TestVidListOptionwithinvalidValue1(); |
|
120 void TestDbgOptionwithinvalidValue(); |
|
121 void TestDbgOptionwithoutValue(); |
|
122 void Teste32inputOptionwithValue(); |
|
123 void Teste32inputOptionwithimg(); |
|
124 void Teste32inputOptionwithimg1(); |
|
125 void Teste32inputOptionwithinvalidoption(); |
|
126 void Teste32inputOptionwithinvalidoption1(); |
|
127 void TestnocheckOptionwithinvalidoption(); |
|
128 void TestnocheckOptionwithinvalidoption1(); |
|
129 void TestnocheckOptionwithinvalidoption2(); |
|
130 void TestnocheckOptionwithinvalidoption3(); |
|
131 void TestnocheckOptionwithNoChecksEnabled(); |
|
132 void TestnocheckOptionwithNoChecksEnabled1(); |
|
133 void TesttocheckOptionwithNoImgandE32input(); |
|
134 void TesttocheckOptionPrefix(); |
|
135 void TesttocheckInvalidOption(); |
|
136 void TesttocheckInvalidOption1(); |
|
137 void TesttocheckInvalidOption2(); |
|
138 }; |
|
139 |
|
140 #endif |