1 /* |
|
2 * Copyright (c) 2006-2007 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: Unit tests for CMusManagerImpl class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef UT_CMUSMANAGERIMPL_H |
|
21 #define UT_CMUSMANAGERIMPL_H |
|
22 |
|
23 |
|
24 #include "musmanagerimpl.h" |
|
25 #include <e32base.h> |
|
26 #include <digia/eunit/ceunittestsuiteclass.h> |
|
27 |
|
28 |
|
29 /** |
|
30 * This class implements unit tests for CMusManagerImpl class. |
|
31 */ |
|
32 class UT_CMusManagerImpl : public CEUnitTestSuiteClass |
|
33 { |
|
34 public: |
|
35 |
|
36 static UT_CMusManagerImpl* NewL(); |
|
37 static UT_CMusManagerImpl* NewLC(); |
|
38 virtual ~UT_CMusManagerImpl(); |
|
39 |
|
40 /** |
|
41 * Unit test methods. |
|
42 */ |
|
43 void UT_CMusManagerImpl_ExamineAvailabilityLL(); |
|
44 void UT_CMusManagerImpl_AvailabilityLL(); |
|
45 void UT_CMusManagerImpl_HandleSipRequestLL(); |
|
46 void UT_CMusManagerImpl_StartApplicationLL(); |
|
47 void UT_CMusManagerImpl_StopApplicationLL(); |
|
48 void UT_CMusManagerImpl_HandleCommandLL(); |
|
49 private: |
|
50 |
|
51 UT_CMusManagerImpl(); |
|
52 void ConstructL(); |
|
53 |
|
54 /** |
|
55 * Sets up a test case by instantiating tested class. |
|
56 */ |
|
57 void SetupL(); |
|
58 |
|
59 /** |
|
60 * Finalizes a test case by freeing resources. |
|
61 */ |
|
62 void Teardown(); |
|
63 |
|
64 void UT_CMusManagerImpl_StartServerL(); |
|
65 void UT_CMusManagerImpl_ServerStartedL(); |
|
66 void UT_CMusManagerImpl_ConnectLL(); |
|
67 void UT_CMusManagerImpl_InitSessionLL(); |
|
68 void UT_CMusManagerImpl_QueryAvailabilityLL(); |
|
69 |
|
70 private: // data |
|
71 |
|
72 /** |
|
73 * Pointer to instance of tested class. |
|
74 * Own. |
|
75 */ |
|
76 CMusManagerImpl* iImpl; |
|
77 |
|
78 EUNIT_DECLARE_TEST_TABLE; |
|
79 }; |
|
80 |
|
81 |
|
82 #endif // UT_CMUSMANAGERIMPL_H |
|