author | Tom Sutcliffe <thomas.sutcliffe@accenture.com> |
Wed, 22 Sep 2010 10:56:39 +0100 | |
changeset 79 | f3d01c9dd099 |
parent 70 | b06038904ef8 |
permissions | -rw-r--r-- |
70
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
1 |
// ciftest.h |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
2 |
// |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
3 |
// Copyright (c) 2010 Accenture. All rights reserved. |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
4 |
// This component and the accompanying materials are made available |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
5 |
// under the terms of the "Eclipse Public License v1.0" |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
6 |
// which accompanies this distribution, and is available |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
8 |
// |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
9 |
// Initial Contributors: |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
10 |
// Accenture - Initial contribution |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
11 |
// |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
12 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
13 |
#ifndef CIFTEST_H |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
14 |
#define CIFTEST_H |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
15 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
16 |
#include <fshell/ioutils.h> |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
17 |
#include "parser.h" |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
18 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
19 |
using namespace IoUtils; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
20 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
21 |
class CCmdCifTest : public CCommandBase, public MParserObserver |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
22 |
{ |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
23 |
public: |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
24 |
static CCommandBase* NewLC(); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
25 |
~CCmdCifTest(); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
26 |
private: |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
27 |
CCmdCifTest(); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
28 |
void TestCifL(CCommandInfoFile* aCif); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
29 |
void NextCif(); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
30 |
void TestCompleted(TInt aError); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
31 |
private: // From CCommandBase. |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
32 |
void RunL(); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
33 |
virtual const TDesC& Name() const; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
34 |
virtual void DoRunL(); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
35 |
virtual void ArgumentsL(RCommandArgumentList& aArguments); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
36 |
virtual void OptionsL(RCommandOptionList& aOptions); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
37 |
private: // From MParserObserver. |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
38 |
virtual void HandleParserComplete(CParser& aParser, const TError& aError); |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
39 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
40 |
private: |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
41 |
HBufC* iCmd; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
42 |
TBool iVerbose; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
43 |
TBool iKeepGoing; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
44 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
45 |
TFileName iFileName; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
46 |
CCommandInfoFile* iCurrentCif; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
47 |
CParser* iParser; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
48 |
CEnvironment* iEnvForScript; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
49 |
RPointerArray<HBufC> iCifFiles; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
50 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
51 |
TInt iPasses; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
52 |
TInt iFailures; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
53 |
TInt iNextCif; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
54 |
}; |
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
55 |
|
b06038904ef8
Added ==smoke-test support and ciftest command.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
56 |
#endif |