//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
//
//
[StifSettings]
CheckHeapBalance=off
[EndStifSettings]

[Test]
title 5.1 ObjectItf SetPriority
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_SetPriority 1 100 XA_BOOLEAN_FALSE
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 5.2 ObjectItf GetPriority
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_SetPriority 1 100 XA_BOOLEAN_FALSE
ALImpl al_objitf_GetPriority 1 100 XA_BOOLEAN_FALSE
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 5.3 ObjectItf SetLossOfControlInterfaces
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_SetLossOfControlInterfaces 1 0 1
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 5.4 ObjectItf RegisterCallback
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_RegisterCallback 1
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 5.5 ObjectItf GetState
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_GetState 1 XA_OBJECT_STATE_REALIZED
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 5.6 ObjectItf Realize
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface 1 5
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 


[Test]
title 5.7 ObjectItf Resume
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
allownextresult XA_RESULT_PRECONDITIONS_VIOLATED
ALImpl al_objitf_Resume 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 5.8 ObjectItf AbortAsyncOperation
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
ALImpl al_objitf_AbortAsyncOperation 1
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 5.9 ObjectItf Realize Async
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_RegisterCallback 1
request Event_XA_OBJECT_EVENT_ASYNC_TERMINATION
ALImpl al_objitf_Realize 1 XA_BOOLEAN_TRUE
wait Event_XA_OBJECT_EVENT_ASYNC_TERMINATION
release Event_XA_OBJECT_EVENT_ASYNC_TERMINATION
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 5.10 ObjectItf Resume
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_RegisterCallback 1
ALImpl al_objitf_Realize 1 XA_BOOLEAN_FALSE
request Event_XA_OBJECT_EVENT_ASYNC_TERMINATION
ALImpl al_objitf_Resume 1 XA_BOOLEAN_TRUE
wait Event_XA_OBJECT_EVENT_ASYNC_TERMINATION
release Event_XA_OBJECT_EVENT_ASYNC_TERMINATION
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]