33
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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 |
|
|
18 |
|
|
19 |
#ifndef __UT_MUSENGSESSION_H__
|
|
20 |
#define __UT_MUSENGSESSION_H__
|
|
21 |
|
|
22 |
|
|
23 |
// EXTERNAL INCLUDES
|
|
24 |
#include <digia/eunit/ceunittestsuiteclass.h>
|
|
25 |
#include <digia/eunit/eunitmacros.h>
|
|
26 |
|
|
27 |
// FORWARD DECLARATIONS
|
|
28 |
class CMusEngLiveSession;
|
|
29 |
class CMusEngObserverStub;
|
|
30 |
|
|
31 |
|
|
32 |
// CLASS DEFINITION
|
|
33 |
/**
|
|
34 |
* Tester class for CMusEngSession.
|
|
35 |
* Since CMusEngSession is abstract, it is tested via object of its'
|
|
36 |
* concrete descendant class CMusEngLiveSession. Only concrete
|
|
37 |
* implementations are tested in this tester class.
|
|
38 |
*
|
|
39 |
*/
|
|
40 |
NONSHARABLE_CLASS( UT_CMusEngSession ): public CEUnitTestSuiteClass
|
|
41 |
{
|
|
42 |
public: // Constructors and destructors
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Two phase construction
|
|
46 |
*/
|
|
47 |
static UT_CMusEngSession* NewL();
|
|
48 |
static UT_CMusEngSession* NewLC();
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Destructor
|
|
52 |
*/
|
|
53 |
~UT_CMusEngSession();
|
|
54 |
|
|
55 |
private: // Constructors and destructors
|
|
56 |
|
|
57 |
UT_CMusEngSession();
|
|
58 |
void ConstructL();
|
|
59 |
|
|
60 |
private: // Test case setup and teardown
|
|
61 |
|
|
62 |
void SetupL();
|
|
63 |
|
|
64 |
void Teardown();
|
|
65 |
|
|
66 |
private: // Test methods
|
|
67 |
|
|
68 |
void UT_RectL();
|
|
69 |
void UT_SetRectLL();
|
|
70 |
void UT_AudioRoutingCanBeChangedL();
|
|
71 |
void UT_IsAudioRoutingHeadsetL();
|
|
72 |
void UT_IsAudioRoutingLoudSpeakerL();
|
|
73 |
void UT_EnableLoudspeakerLL();
|
|
74 |
void UT_IsLoudSpeakerEnabledL();
|
|
75 |
void UT_VolumeLL();
|
|
76 |
void UT_MuteMicLL();
|
|
77 |
void UT_IsMicMutedLL();
|
|
78 |
void UT_SetAudioRoutingObserverL();
|
|
79 |
void UT_VolumeUpLL();
|
|
80 |
void UT_VolumeDownLL();
|
|
81 |
void UT_SetVolumeLL();
|
|
82 |
void UT_SetVolumeChangeObserverL();
|
|
83 |
|
|
84 |
private: // Data
|
|
85 |
|
|
86 |
CMusEngLiveSession* iLiveSession;
|
|
87 |
CMusEngObserverStub* iObserver;
|
|
88 |
|
|
89 |
EUNIT_DECLARE_TEST_TABLE;
|
|
90 |
|
|
91 |
};
|
|
92 |
|
|
93 |
#endif // __UT_MUSENGSESSION_H__
|
|
94 |
|
|
95 |
// End of file
|