diff -r 558113899881 -r b3425bf29f82 classicui_plat/findutil_api/tsrc/inc/testdomfindutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/classicui_plat/findutil_api/tsrc/inc/testdomfindutil.h Wed Jun 23 05:40:10 2010 +0800 @@ -0,0 +1,156 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test findutil.h +* +*/ + + + + + +#ifndef C_TESTDOMFINDUTIL_H +#define C_TESTDOMFINDUTIL_H + +// INCLUDES +#include +#include +#include +#include + +// MACROS +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KtestdomfindutilLogPath, "\\logs\\testframework\\testdomfindutil\\" ); +// Log file +_LIT( KtestdomfindutilLogFile, "testdomfindutil.txt" ); +_LIT( KtestdomfindutilLogFileWithTitle, "testdomfindutil_[%S].txt" ); + +/** +* CTestDOMFindUtil test class for STIF Test Framework TestScripter. +* @since S60 5.0 +*/ +NONSHARABLE_CLASS( CTestDOMFindUtil ) : public CScriptBase + { +public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CTestDOMFindUtil* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CTestDOMFindUtil(); + +public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since S60 5.0 + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + +private: + + /** + * C++ default constructor. + */ + CTestDOMFindUtil( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + /** + * Turn off ScreenSaver + * @since S60 5.0 + * @return Symbian OS error code. + */ + void TurnOffScreenSaver(); + + /** + * Restore ScreenSaver + * @since S60 5.0 + * @return Symbian OS error code. + */ + void RestoreScreenSaver(); + +private: // test functions of MFindUtil class + + /** + * test MatchRefineL method. + * @since S60 5.0 + * @param aItem Script line containing parameters. + * @return Symbian OS error code. + */ + virtual TInt TestMatchRefineL( CStifItemParser& aItem ); + + /** + * test Match method. + * @since S60 5.0 + * @param aItem Script line containing parameters. + * @return Symbian OS error code. + */ + virtual TInt TestMatchL( CStifItemParser& aItem ); + + /** + * test IsWordValidForMatching method. + * @since S60 5.0 + * @param aItem Script line containing parameters. + * @return Symbian OS error code. + */ + virtual TInt TestIsWordValidForMatchingL( CStifItemParser& aItem ); + + /** + * test MatchAdaptiveRefineL method. + * @since S60 5.0 + * @param aItem Script line containing parameters. + * @return Symbian OS error code. + */ + virtual TInt TestMatchAdaptiveRefineL( CStifItemParser& aItem ); + +private: // test functions of CFindUtil class + + /** + * test NewL method. + * @since S60 5.0 + * @param aItem never used. + * @return Symbian OS error code. + */ + virtual TInt TestNewL( CStifItemParser& aItem ); + +private: // Data + + /** + * ScreenSaver Property + */ + TInt iOldScreenSaverProperty; + + }; + +#endif // C_TESTDOMFINDUTIL_H + +// End of File