--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/findutil_api/tsrc/inc/testdomfindutil.h Thu May 27 13:07:04 2010 +0300
@@ -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 <stiflogger.h>
+#include <testscripterinternal.h>
+#include <stiftestmodule.h>
+#include <testclassassert.h>
+
+// 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