|
1 /* |
|
2 * Copyright (c) 2008 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: test calenimporter api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // CLASS HEADER |
|
21 #include "testcalenimporter.h" |
|
22 #include "calenimptestconstants.h" |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <CEUnitTestSuite.h> |
|
26 #include <swinstapi.h> |
|
27 #include <EUnitMacros.h> |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // Install data |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 /*TInt Install( const TDesC& aPackagePath ) |
|
34 { |
|
35 TInt err = KErrNone; |
|
36 SwiUI::RSWInstSilentLauncher installer; |
|
37 |
|
38 err = installer.Connect(); |
|
39 if(err != KErrNone) |
|
40 { |
|
41 EUNIT_PRINT(_L( "Connection to installer failed" ) ); |
|
42 } |
|
43 |
|
44 SwiUI::TInstallOptionsPckg options; |
|
45 options().iUpgrade = SwiUI::EPolicyAllowed; |
|
46 options().iPackageInfo = SwiUI::EPolicyAllowed; |
|
47 options().iOverwrite = SwiUI::EPolicyAllowed; |
|
48 options().iKillApp = SwiUI::EPolicyAllowed; |
|
49 |
|
50 err = installer.SilentInstall( aPackagePath, options ); |
|
51 if(err != KErrNone) |
|
52 { |
|
53 EUNIT_PRINT(_L( "Connection to installer failed" ) ); |
|
54 } |
|
55 |
|
56 installer.Close(); |
|
57 |
|
58 return err; |
|
59 } */ |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // Test suite factory function. |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 EXPORT_C MEUnitTest* CreateTestSuiteL() |
|
66 { |
|
67 // Install(KCalenImporterSisxFilePath); |
|
68 return CCalenImporterTest::NewL(); |
|
69 } |
|
70 |
|
71 // END OF FILE |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |