|
1 // Copyright (c) 2008-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 TESTSRTDECODERREGIONFUNCS_H |
|
17 #define TESTSRTDECODERREGIONFUNCS_H |
|
18 |
|
19 #include <testframework.h> |
|
20 #include "testsrtdecoder.h" |
|
21 |
|
22 class CSrtReader; |
|
23 class CSrtSubtitleDecoder; |
|
24 |
|
25 /* |
|
26 Test functions of calculating region, setting video position, starting and stopping decoding. |
|
27 MM-MMF-SUBTITLE-SRTDECODER-U-0001-HP |
|
28 */ |
|
29 NONSHARABLE_CLASS (RTestSrtDecoderStep0001) : public RTestSrtDecoderStep |
|
30 { |
|
31 public: |
|
32 RTestSrtDecoderStep0001(); |
|
33 |
|
34 private: |
|
35 // from RTestStep; |
|
36 TVerdict DoTestStepL(); |
|
37 TVerdict DoTestStepPreambleL(); |
|
38 TVerdict DoTestStepPostambleL(); |
|
39 |
|
40 virtual TVerdict TestCalculateSubtitleRegion(); |
|
41 virtual TVerdict TestSetVideoPosition(); |
|
42 virtual TVerdict TestStartStop(); |
|
43 }; |
|
44 |
|
45 /* |
|
46 Test functions of calculating invalid regions, setting invalid video position. |
|
47 MM-MMF-SUBTITLE-SRTDECODER-U-0102-HP |
|
48 */ |
|
49 NONSHARABLE_CLASS (RTestSrtDecoderStep0102) : public RTestSrtDecoderStep |
|
50 { |
|
51 public: |
|
52 RTestSrtDecoderStep0102(); |
|
53 |
|
54 private: |
|
55 // from RTestStep; |
|
56 TVerdict DoTestStepL(); |
|
57 TVerdict DoTestStepPreambleL(); |
|
58 TVerdict DoTestStepPostambleL(); |
|
59 |
|
60 TVerdict TestCalculateSubtitleRegion(); |
|
61 TVerdict TestStartStop(); |
|
62 }; |
|
63 |
|
64 /* |
|
65 Test functions of calculating invalid regions, setting invalid video position. |
|
66 MM-MMF-SUBTITLE-SRTDECODER-U-0104-HP |
|
67 */ |
|
68 NONSHARABLE_CLASS (RTestSrtDecoderStep0104) : public RTestSrtDecoderStep |
|
69 { |
|
70 public: |
|
71 RTestSrtDecoderStep0104(); |
|
72 |
|
73 private: |
|
74 // from RTestStep; |
|
75 TVerdict DoTestStepL(); |
|
76 }; |
|
77 |
|
78 #endif // TESTSRTDECODERREGIONFUNCS_H |