diff -r cfea66083b62 -r baacf668fe89 phoneapp/phoneuicontrol/tsrc/ut_phoneaudioutil/Src/ut_phoneaudioutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuicontrol/tsrc/ut_phoneaudioutil/Src/ut_phoneaudioutil.h Fri Oct 15 12:58:46 2010 +0300 @@ -0,0 +1,82 @@ +/* +* 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: +* +*/ + +#ifndef __UT_PHONEAUDIOUTIL_H__ +#define __UT_PHONEAUDIOUTIL_H__ + +// INCLUDES +#include +#include + + + +// FORWARD DECLARATIONS +class CPhoneViewCommandHandleMock; +class CCoeEnv; +class CPhoneStateMachineGSM; +class CPEEngineInfo; +class CPhoneMainResourceResolverMock; +class CSmcMockContext; +class CPhoneStateHandle; + +// CLASS DEFINITION +/** + * Generated EUnit test suite class. + */ +NONSHARABLE_CLASS( ut_phoneaudioutil ) + : public CEUnitTestSuiteClass + { + public: // Constructors and destructor + + static ut_phoneaudioutil* NewL(); + static ut_phoneaudioutil* NewLC(); + ~ut_phoneaudioutil(); + + private: // Constructors + + ut_phoneaudioutil(); + void ConstructL(); + + private: // New methods + + void SetupL(); + void Teardown(); + + void T_ConstructionL(); + void T_HandleAudioMuteChangedL(); + void T_HandleAudioOutputChangedL(); + void T_ChangeAudioVolumeL(); + void T_HandleAudioAvailableOutputChangedL(); + void T_ToggleMute(); + void T_SetHandsfreeModeL(); + + + private: // Data + + CPhoneViewCommandHandleMock* iViewCommandHandle; + CPhoneStateHandle* iCPhoneStateHandleMock; + CCoeEnv* iCoeEnvMock; + CPhoneStateMachineGSM* iStateMachine; + CPEEngineInfo* iEngineInfo; + CSmcMockContext* iMockContext; + CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock; + + EUNIT_DECLARE_TEST_TABLE; + + }; + +#endif // __UT_PHONEAUDIOUTIL_H__