sl@0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@test
|
sl@0
|
19 |
@internalComponent - Internal Symbian test code
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#if (!defined __T_MIME_STEP_H__)
|
sl@0
|
23 |
#define __T_MIME_STEP_H__
|
sl@0
|
24 |
#include <test/testexecutestepbase.h>
|
sl@0
|
25 |
#include "TEmimeTestServer.h"
|
sl@0
|
26 |
#include <apmfndr.h>
|
sl@0
|
27 |
#include <apmrec.h>
|
sl@0
|
28 |
#include <s32file.h>
|
sl@0
|
29 |
|
sl@0
|
30 |
class CTestDataRecognizerType : public CApaDataRecognizer
|
sl@0
|
31 |
{
|
sl@0
|
32 |
public:
|
sl@0
|
33 |
static inline CTestDataRecognizerType * NewDataRecogTypeL(RFs &aFs);
|
sl@0
|
34 |
CTestDataRecognizerType(RFs &aFs);
|
sl@0
|
35 |
~CTestDataRecognizerType();
|
sl@0
|
36 |
inline void AddDataL(CApaDataRecognizerType* aDataRecognizerType)
|
sl@0
|
37 |
{
|
sl@0
|
38 |
AddDataRecognizerType(aDataRecognizerType);
|
sl@0
|
39 |
};
|
sl@0
|
40 |
inline TInt RemoveData( CApaDataRecognizerType* aDataRecognizerType)
|
sl@0
|
41 |
{
|
sl@0
|
42 |
return (RemoveDataRecognizerType(aDataRecognizerType));
|
sl@0
|
43 |
};
|
sl@0
|
44 |
|
sl@0
|
45 |
|
sl@0
|
46 |
|
sl@0
|
47 |
};
|
sl@0
|
48 |
|
sl@0
|
49 |
class CT_MimeStep : public CTestStep
|
sl@0
|
50 |
{
|
sl@0
|
51 |
public:
|
sl@0
|
52 |
CT_MimeStep();
|
sl@0
|
53 |
~CT_MimeStep();
|
sl@0
|
54 |
// virtual TVerdict doTestStepPreambleL();
|
sl@0
|
55 |
// virtual TVerdict doTestStepPostambleL();
|
sl@0
|
56 |
virtual TVerdict doTestStepL();
|
sl@0
|
57 |
private:
|
sl@0
|
58 |
void testScanningMimeTheRecognizerL();
|
sl@0
|
59 |
void testRecognizersL();
|
sl@0
|
60 |
void testTDataTypeL();
|
sl@0
|
61 |
void DoTest(TInt aReturnValue);
|
sl@0
|
62 |
void testRecognizer(const CApaScanningDataRecognizer::TRecognizer& aRec);
|
sl@0
|
63 |
void ChkConfAndMimeL(RFs &aIfs,const TUid &aUid);
|
sl@0
|
64 |
void ChkLockAndUnlockL(RFs &aIfs);
|
sl@0
|
65 |
|
sl@0
|
66 |
private:
|
sl@0
|
67 |
CApaScanningDataRecognizer* iRecognizer;
|
sl@0
|
68 |
RFs iFs;
|
sl@0
|
69 |
CTrapCleanup* iTrapCleanup;
|
sl@0
|
70 |
CTestDataRecognizerType * iTestDataRecogType;
|
sl@0
|
71 |
CApaDataRecognizerType * iData;
|
sl@0
|
72 |
};
|
sl@0
|
73 |
|
sl@0
|
74 |
_LIT(KT_MimeStep,"T_Mime");
|
sl@0
|
75 |
#endif
|
sl@0
|
76 |
|