|
1 // |
|
2 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 LOAD_SUITE tsu_omxilgraphicsink |
|
18 |
|
19 |
|
20 START_TESTCASE MMVIDEO-OMX-GS-007-01-HP |
|
21 //! @SYMTestCaseID MMVIDEO-OMX-GS-007-01-HP |
|
22 //! @SYMTestType UT |
|
23 //! @SYMTestCaseDesc Pause test |
|
24 //! @SYMTestExpectedResults State is changed and callbacks are invoked |
|
25 //! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers |
|
26 //! Wait for callback to return OMX_EventCmdComplete |
|
27 //! Send command OMX_StateExecuting and wait for callback to return OMX_EventCmdComplete |
|
28 //! Fill Allocated buffer with colour using filled CCameraBuffer* |
|
29 //! Call Empty this buffer and wait for DoEmptyBufferDone callback |
|
30 //! Call Empty this buffer for next buffer and repeat multiple times |
|
31 //! Send command OMX_StatePause and wait for callback to return OMX_EventCmdComplete after a certain amount buffers emptied |
|
32 //! Send command OMX_StateExecuting and wait for callback |
|
33 //! Repeat this loop five times |
|
34 //! Send command OMX_StateIdle and wait for callback |
|
35 //! Send command OMX_StateLoaded and Free required number of buffer |
|
36 //! Wait for callback to return OMX_EventCmdComplete |
|
37 //! COmxILGraphicSinkProcessingFunction::StateTransitionIndication |
|
38 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
39 //! COmxILGraphicSinkProcessingFunction::DestroyBuffer |
|
40 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-007-01-HP |
|
41 END_TESTCASE MMVIDEO-OMX-GS-007-01-HP |
|
42 |
|
43 START_TESTCASE MMVIDEO-OMX-GS-007-02-HP |
|
44 //! @SYMTestCaseID MMVIDEO-OMX-GS-007-02-HP |
|
45 //! @SYMTestType UT |
|
46 //! @SYMTestCaseDesc Pause test |
|
47 //! @SYMTestExpectedResults State is changed and callbacks are invoked |
|
48 //! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers |
|
49 //! Wait for callback to return OMX_EventCmdComplete |
|
50 //! Send command OMX_StateExecuting and wait for callback to return OMX_EventCmdComplete |
|
51 //! Fill Allocated buffer with colour using filled CCameraBuffer* |
|
52 //! Call Empty this buffer and wait for DoEmptyBufferDone callback |
|
53 //! Call Empty this buffer for next buffer and repeat multiple times |
|
54 //! Send command OMX_StatePause and wait for callback to return OMX_EventCmdComplete after a certain amount buffers emptied |
|
55 //! Send command OMX_StateIdle and wait for callback |
|
56 //! Send command OMX_StateExecuting and wait for callback |
|
57 //! Repeat this loop five times |
|
58 //! Send command OMX_StateIdle and wait for callback |
|
59 //! Send command OMX_StateLoaded and Free required number of buffer |
|
60 //! Wait for callback to return OMX_EventCmdComplete |
|
61 //! COmxILGraphicSinkProcessingFunction::StateTransitionIndication |
|
62 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
63 //! COmxILGraphicSinkProcessingFunction::DestroyBuffer |
|
64 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-007-02-HP |
|
65 END_TESTCASE MMVIDEO-OMX-GS-007-02-HP |
|
66 |
|
67 START_TESTCASE MMVIDEO-OMX-GS-007-03-HP |
|
68 //! @SYMTestCaseID MMVIDEO-OMX-GS-007-03-HP |
|
69 //! @SYMTestType UT |
|
70 //! @SYMTestCaseDesc Pause test |
|
71 //! @SYMTestExpectedResults State is changed and callbacks are invoked |
|
72 //! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers |
|
73 //! Wait for callback to return OMX_EventCmdComplete |
|
74 //! Send command OMX_StateExecuting and wait for callback to return OMX_EventCmdComplete |
|
75 //! Fill Allocated buffer with colour using filled CCameraBuffer* |
|
76 //! Call Empty this buffer and wait for DoEmptyBufferDone callback |
|
77 //! Call Empty this buffer for next buffer and repeat multiple times |
|
78 //! Send command OMX_StateIdle and wait for callback to return OMX_EventCmdComplete after a certain amount buffers emptied |
|
79 //! Send command OMX_StatePause and wait for callback |
|
80 //! Send command OMX_StateExecuting and wait for callback |
|
81 //! Repeat this loop five times |
|
82 //! Send command OMX_StateIdle and wait for callback |
|
83 //! Send command OMX_StateLoaded and Free required number of buffer |
|
84 //! Wait for callback to return OMX_EventCmdComplete |
|
85 //! COmxILGraphicSinkProcessingFunction::StateTransitionIndication |
|
86 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
87 //! COmxILGraphicSinkProcessingFunction::DestroyBuffer |
|
88 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-007-03-HP |
|
89 END_TESTCASE MMVIDEO-OMX-GS-007-03-HP |
|
90 |
|
91 START_TESTCASE MMVIDEO-OMX-GS-007-04-HP |
|
92 //! @SYMTestCaseID MMVIDEO-OMX-GS-007-04-HP |
|
93 //! @SYMTestType UT |
|
94 //! @SYMTestCaseDesc Pause test |
|
95 //! @SYMTestExpectedResults State is changed and callbacks are invoked |
|
96 //! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers |
|
97 //! Wait for callback to return OMX_EventCmdComplete |
|
98 //! Send command OMX_StateExecuting and wait for callback to return OMX_EventCmdComplete |
|
99 //! Fill Allocated buffer with colour using filled CCameraBuffer* |
|
100 //! Call Empty this buffer and wait for DoEmptyBufferDone callback |
|
101 //! Call Empty this buffer for next buffer and repeat multiple times |
|
102 //! Send command OMX_StatePause and wait for callback to return OMX_EventCmdComplete after a certain amount buffers emptied |
|
103 //! Send command OMX_StateIdle and wait for callback |
|
104 //! Send command OMX_StatePause and wait for callback |
|
105 //! Send command OMX_StateExecuting and wait for callback |
|
106 //! Repeat this loop five times |
|
107 //! Send command OMX_StateIdle and wait for callback |
|
108 //! Send command OMX_StateLoaded and Free required number of buffer |
|
109 //! Wait for callback to return OMX_EventCmdComplete |
|
110 //! COmxILGraphicSinkProcessingFunction::StateTransitionIndication |
|
111 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
112 //! COmxILGraphicSinkProcessingFunction::DestroyBuffer |
|
113 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-007-04-HP |
|
114 END_TESTCASE MMVIDEO-OMX-GS-007-04-HP |