0
|
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 |
START_TESTCASE MMVIDEO-OMX-GS-004-01-HP
|
|
20 |
//! @SYMTestCaseID MMVIDEO-OMX-GS-004-01-HP
|
|
21 |
//! @SYMTestCaseDesc HEAP test State Loaded to Idle to Executing using AllocateBuffer
|
|
22 |
//! @SYMTestExpectedResults HEAP mark reports no memory leaks
|
|
23 |
//! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers
|
|
24 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
25 |
//! Send command OMX_StateExecuting and then send command OMX_StateIdle
|
|
26 |
//! Send command OMX_StateLoaded and Free required number of buffer
|
|
27 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
28 |
//! Repeat test once, using __MM_HEAP_MARK and __MM_HEAP_MARK to test HEAP size
|
|
29 |
//! COmxILGraphicSinkProcessingFunction::StateTransitionIndication
|
|
30 |
//! COmxILGraphicSinkProcessingFunction::CreateBufferL
|
|
31 |
//! COmxILGraphicSinkProcessingFunction::DestroyBuffer
|
|
32 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-004-01-HP
|
|
33 |
|
|
34 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-009-00-HP c:\omxil\configs\tsu_omxilgraphicsink.ini AllocateBufferStateOne
|
|
35 |
|
|
36 |
END_TESTCASE MMVIDEO-OMX-GS-004-01-HP
|
|
37 |
|
|
38 |
START_TESTCASE MMVIDEO-OMX-GS-004-02-HP
|
|
39 |
//! @SYMTestCaseID MMVIDEO-OMX-GS-004-02-HP
|
|
40 |
//! @SYMTestCaseDesc Stress test State Loaded to Idle to Executing using AllocateBuffer
|
|
41 |
//! @SYMTestExpectedResults State is changed and callback is invoked
|
|
42 |
//! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers
|
|
43 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
44 |
//! Send command OMX_StateExecuting and then send command OMX_StateIdle
|
|
45 |
//! Send command OMX_StateLoaded and Free required number of buffer
|
|
46 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
47 |
//! Repeat test multiple times
|
|
48 |
//! COmxILGraphicSinkProcessingFunction::StateTransitionIndication
|
|
49 |
//! COmxILGraphicSinkProcessingFunction::CreateBufferL
|
|
50 |
//! COmxILGraphicSinkProcessingFunction::DestroyBuffer
|
|
51 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-004-02-HP
|
|
52 |
|
|
53 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-009-00-HP c:\omxil\configs\tsu_omxilgraphicsink.ini AllocateBufferStateTwo
|
|
54 |
|
|
55 |
END_TESTCASE MMVIDEO-OMX-GS-004-02-HP
|
|
56 |
|
|
57 |
START_TESTCASE MMVIDEO-OMX-GS-004-03-HP
|
|
58 |
//! @SYMTestCaseID MMVIDEO-OMX-GS-004-03-HP
|
|
59 |
//! @SYMTestCaseDesc Stress test State Loaded to Idle to Executing using AllocateBuffer
|
|
60 |
//! @SYMTestExpectedResults State is changed and callback is invoked
|
|
61 |
//! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers
|
|
62 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
63 |
//! Send command OMX_StateExecuting and then send command OMX_StateIdle
|
|
64 |
//! Send command OMX_StateLoaded and Free required number of buffer
|
|
65 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
66 |
//! Increase buffer count incrementally and repeat test multiple times
|
|
67 |
//! COmxILGraphicSinkProcessingFunction::StateTransitionIndication
|
|
68 |
//! COmxILGraphicSinkProcessingFunction::CreateBufferL
|
|
69 |
//! COmxILGraphicSinkProcessingFunction::DestroyBuffer
|
|
70 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-004-03-HP
|
|
71 |
|
|
72 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-009-00-HP c:\omxil\configs\tsu_omxilgraphicsink.ini AllocateBufferStateThree
|
|
73 |
|
|
74 |
END_TESTCASE MMVIDEO-OMX-GS-004-03-HP
|
|
75 |
|
|
76 |
START_TESTCASE MMVIDEO-OMX-GS-004-04-HP
|
|
77 |
//! @SYMTestCaseID MMVIDEO-OMX-GS-004-04-HP
|
|
78 |
//! @SYMTestType UT
|
|
79 |
//! @SYMTestCaseDesc Stress test State Loaded to Idle to Executing using AllocateBuffer
|
|
80 |
//! @SYMTestExpectedResults State is changed and callback is invoked
|
|
81 |
//! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers
|
|
82 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
83 |
//! Send command OMX_StateExecuting and then send command OMX_StateIdle
|
|
84 |
//! Repeat Idle to Executing to Idle 20 times
|
|
85 |
//! Send command OMX_StateLoaded and Free required number of buffer
|
|
86 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
87 |
//! Repeat test multiple times
|
|
88 |
//! COmxILGraphicSinkProcessingFunction::StateTransitionIndication
|
|
89 |
//! COmxILGraphicSinkProcessingFunction::CreateBufferL
|
|
90 |
//! COmxILGraphicSinkProcessingFunction::DestroyBuffer
|
|
91 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-004-04-HP
|
|
92 |
END_TESTCASE MMVIDEO-OMX-GS-004-04-HP
|
|
93 |
|
|
94 |
// START_TESTCASE MMVIDEO-OMX-GS-004-05-HP
|
|
95 |
//! @SYMTestCaseID MMVIDEO-OMX-GS-004-05-HP
|
|
96 |
//! @SYMTestType UT
|
|
97 |
//! @SYMTestCaseDesc Stress test State Loaded to Idle to Executing using AllocateBuffer
|
|
98 |
//! @SYMTestExpectedResults State is changed and callback is invoked
|
|
99 |
//! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers
|
|
100 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
101 |
//! Send command OMX_StateExecuting and then send command OMX_StateIdle
|
|
102 |
//! Repeat Idle to Executing to Idle 20 times
|
|
103 |
//! Send command OMX_StateLoaded and Free required number of buffer
|
|
104 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
105 |
//! Increase buffer count incrementally and repeat test multiple times
|
|
106 |
//! COmxILGraphicSinkProcessingFunction::StateTransitionIndication
|
|
107 |
//! COmxILGraphicSinkProcessingFunction::CreateBufferL
|
|
108 |
//! COmxILGraphicSinkProcessingFunction::DestroyBuffer
|
|
109 |
// Fails due to OOM - under investigation. Test disabled as this failure sometimes interferes with subsequent test steps.
|
|
110 |
// RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-004-05-HP
|
|
111 |
// END_TESTCASE MMVIDEO-OMX-GS-004-05-HP
|
|
112 |
|
|
113 |
START_TESTCASE MMVIDEO-OMX-GS-004-06-HP
|
|
114 |
//! @SYMTestCaseID MMVIDEO-OMX-GS-004-06-HP
|
|
115 |
//! @SYMTestType UT
|
|
116 |
//! @SYMTestCaseDesc Move from executing to idle without waiting for DoFillBufferDone callback
|
|
117 |
//! @SYMTestExpectedResults OpenMAX shuts down without error
|
|
118 |
//! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffers
|
|
119 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
120 |
//! Send command OMX_StateExecuting and then send command OMX_StateIdle
|
|
121 |
//! Fill buffer with data and call EmptyThisBuffer
|
|
122 |
//! Within same method call Send command OMX_StateLoaded and Free required number of buffer
|
|
123 |
//! Wait for callback to return OMX_EventCmdComplete
|
|
124 |
//! Send command OMX_StateLoaded and call FreeHandle
|
|
125 |
//! COmxILGraphicSinkProcessingFunction::StateTransitionIndication
|
|
126 |
//! COmxILGraphicSinkProcessingFunction::CreateBufferL
|
|
127 |
//! COmxILGraphicSinkProcessingFunction::DestroyBuffer
|
|
128 |
RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-004-06-HP
|
|
129 |
END_TESTCASE MMVIDEO-OMX-GS-004-06-HP
|