os/mm/mmlibs/mmfw/tsrc/mmfunittest/srtdecoder/inc/testsrtdecoderregionfuncs.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/srtdecoder/inc/testsrtdecoderregionfuncs.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,78 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef TESTSRTDECODERREGIONFUNCS_H
    1.20 +#define TESTSRTDECODERREGIONFUNCS_H
    1.21 +
    1.22 +#include <testframework.h>
    1.23 +#include "testsrtdecoder.h"
    1.24 +
    1.25 +class CSrtReader;
    1.26 +class CSrtSubtitleDecoder;
    1.27 +
    1.28 +/* 
    1.29 +Test functions of calculating region, setting video position, starting and stopping decoding.
    1.30 +MM-MMF-SUBTITLE-SRTDECODER-U-0001-HP
    1.31 +*/
    1.32 +NONSHARABLE_CLASS (RTestSrtDecoderStep0001) : public RTestSrtDecoderStep
    1.33 +	{
    1.34 +public:
    1.35 +	RTestSrtDecoderStep0001();
    1.36 +    
    1.37 +private:
    1.38 +	// from RTestStep;
    1.39 +	TVerdict DoTestStepL();
    1.40 +	TVerdict DoTestStepPreambleL();
    1.41 +	TVerdict DoTestStepPostambleL();
    1.42 +
    1.43 +    virtual TVerdict TestCalculateSubtitleRegion();
    1.44 +	virtual TVerdict TestSetVideoPosition();
    1.45 +	virtual TVerdict TestStartStop();
    1.46 +	};
    1.47 +
    1.48 +/* 
    1.49 +Test functions of calculating invalid regions, setting invalid video position.
    1.50 +MM-MMF-SUBTITLE-SRTDECODER-U-0102-HP
    1.51 +*/
    1.52 +NONSHARABLE_CLASS (RTestSrtDecoderStep0102) : public RTestSrtDecoderStep
    1.53 +	{
    1.54 +public:
    1.55 +	RTestSrtDecoderStep0102();
    1.56 +	
    1.57 +private:
    1.58 +    // from RTestStep;
    1.59 +	TVerdict DoTestStepL();
    1.60 +	TVerdict DoTestStepPreambleL();
    1.61 +	TVerdict DoTestStepPostambleL();
    1.62 +	
    1.63 +    TVerdict TestCalculateSubtitleRegion();
    1.64 +	TVerdict TestStartStop();
    1.65 +	};
    1.66 +
    1.67 +/* 
    1.68 +Test functions of calculating invalid regions, setting invalid video position.
    1.69 +MM-MMF-SUBTITLE-SRTDECODER-U-0104-HP
    1.70 +*/
    1.71 +NONSHARABLE_CLASS (RTestSrtDecoderStep0104) : public RTestSrtDecoderStep
    1.72 +	{
    1.73 +public:
    1.74 +	RTestSrtDecoderStep0104();
    1.75 +	
    1.76 +private:
    1.77 +    // from RTestStep;
    1.78 +	TVerdict DoTestStepL();
    1.79 +	};
    1.80 +
    1.81 +#endif // TESTSRTDECODERREGIONFUNCS_H