contenthandling/webrecognisers/Test/t_recweb/crecwebrecogtest.cpp
changeset 81 676b6116ca93
parent 0 2e3d3ce01487
equal deleted inserted replaced
78:175a0d824084 81:676b6116ca93
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    20 #include <flogger.h>
    20 #include <flogger.h>
    21 
    21 
    22 const TInt KTestCaseCount = 8;
    22 const TInt KTestCaseCount = 8;
    23 const TInt KTestDataSize = 2048;
    23 const TInt KTestDataSize = 2048;
    24 _LIT8(KHtmlMimeType,"text/html");
    24 _LIT8(KHtmlMimeType,"text/html");
       
    25 _LIT8(KHtmlMimeType2,"application/xhtml+xml");	// added as part of platsim
    25 _LIT8(KXmlMimeType,"text/xml");
    26 _LIT8(KXmlMimeType,"text/xml");
    26 
    27 
    27 CRecWebRecogTest* CRecWebRecogTest::NewL(TAny* aConstructionsParams)
    28 CRecWebRecogTest* CRecWebRecogTest::NewL(TAny* aConstructionsParams)
    28 	{
    29 	{
    29 	TRecogTestConstructionParams* params = reinterpret_cast<TRecogTestConstructionParams*>(aConstructionsParams);
    30 	TRecogTestConstructionParams* params = reinterpret_cast<TRecogTestConstructionParams*>(aConstructionsParams);
   222 	
   223 	
   223 void CRecWebRecogTest::RunTestCase6L()
   224 void CRecWebRecogTest::RunTestCase6L()
   224 	{
   225 	{
   225 	_LIT(KTxtTestFile6Path, "z:\\recogtestdata\\sample3");
   226 	_LIT(KTxtTestFile6Path, "z:\\recogtestdata\\sample3");
   226 	
   227 	
   227 	RunTestL(KTxtTestFile6Path(), KHtmlMimeType());
   228 	RunTestL(KTxtTestFile6Path(), KHtmlMimeType2());
   228 	}
   229 	}
   229 	
   230 	
   230 void CRecWebRecogTest::RunTestCase7L()
   231 void CRecWebRecogTest::RunTestCase7L()
   231 	{
   232 	{
   232 	_LIT(KTxtTestFile7Path, "z:\\recogtestdata\\sample4.xml");
   233 	_LIT(KTxtTestFile7Path, "z:\\recogtestdata\\sample4.xml");