genericservices/httputils/Test/t_fileuri/FileUriTestCommon.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __FILEURITESTCOMMON_H__
       
    17 #define __FILEURITESTCOMMON_H__
       
    18 
       
    19 // System includes
       
    20 //
       
    21 #include <e32base.h>
       
    22 
       
    23 template<class CUriType, class TDesCType>
       
    24 TInt DoFileUriExtraction(const CUriType& aUri, const TDesCType& aExpectedFileUri);
       
    25 
       
    26 template<class TUriParserType, class CUriType, class TDesCType, class TDesCType16>
       
    27 TInt DoFileUriComponentExtraction(const CUriType& aUri, const TDesCType& aScheme, 
       
    28 									const TDesCType& aPath, const TDesCType16& aExpectedFileName);
       
    29 
       
    30 template<class TParserType, class TDesCType>
       
    31 TInt TestFileName(const TParserType& aParser, const TDesCType& aExpected);
       
    32 
       
    33 template<class TParserType, class TDesCType, class TComponentType>
       
    34 TInt TestComponent(const TParserType& aParser, const TDesCType& aExpected, TComponentType aComponent);
       
    35 
       
    36 
       
    37 #endif	// __FILEURITESTCOMMON_H__