|
1 /* |
|
2 * Copyright (c) 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: ProfileEngine test suite. |
|
15 * |
|
16 */ |
|
17 |
|
18 //////////////////////////////////////////////////////////////////////// |
|
19 // DllMain for T_ProfileEngine.dll |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <CEUnitTestSuite.h> |
|
24 #include "T_MProfileEngine.h" |
|
25 #include "T_MProfile.h" |
|
26 #include "T_CProfileChangeNotifyHandler.h" |
|
27 #include "T_MProfilesNamesArray.h" |
|
28 #include "T_MProfileName.h" |
|
29 #include "T_MProfileTones.h" |
|
30 #include "T_MProfileExtraTones.h" |
|
31 #include "T_MProfileExtraSettings.h" |
|
32 #include "T_MProfilePttSettings.h" |
|
33 #include "T_MProfileFeedbackSettings.h" |
|
34 #include "T_MProfile3DToneSettings.h" |
|
35 |
|
36 /** |
|
37 * T_ProfileEngine.dll test suite factory function. |
|
38 */ |
|
39 EXPORT_C MEUnitTest* CreateTestSuiteL() |
|
40 { |
|
41 CEUnitTestSuite* mainSuite = CEUnitTestSuite::NewLC(_L("T_ProfileEngine API Tests")); |
|
42 |
|
43 // NewLC leaves the pointer to cleanupstack until AddL finishes |
|
44 mainSuite->AddL( T_MProfileName::NewLC() ); |
|
45 mainSuite->AddL( T_MProfileTones::NewLC() ); |
|
46 mainSuite->AddL( T_MProfileExtraTones::NewLC() ); |
|
47 mainSuite->AddL( T_MProfileExtraSettings::NewLC() ); |
|
48 mainSuite->AddL( T_MProfilePttSettings::NewLC() ); |
|
49 mainSuite->AddL( T_MProfileFeedbackSettings::NewLC() ); |
|
50 mainSuite->AddL( T_MProfile3DToneSettings::NewLC() ); |
|
51 mainSuite->AddL( T_MProfilesNamesArray::NewLC() ); |
|
52 mainSuite->AddL( T_MProfile::NewLC() ); |
|
53 mainSuite->AddL( T_CProfileChangeNotifyHandler::NewLC() ); |
|
54 mainSuite->AddL( T_MProfileEngine::NewLC() ); |
|
55 |
|
56 CleanupStack::Pop( 11 ); |
|
57 |
|
58 CleanupStack::Pop( mainSuite ); |
|
59 return mainSuite; |
|
60 } |
|
61 |