|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This contains PhbkSync API GetSyncMode() related Unit Test Steps |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 #include "TE_PhBkSyncBase.h" |
|
20 #include "TestGetSyncModeSteps.h" |
|
21 |
|
22 /** |
|
23 * Test getting the synchronisation mode and print this information |
|
24 * to screen. Repeat this for all supported phonebooks. |
|
25 */ |
|
26 // |
|
27 // Test step1 -- Test#80 in Unit Test Spec. Doc. // |
|
28 // |
|
29 CPhbkSyncGetSyncModeTest_01::CPhbkSyncGetSyncModeTest_01() |
|
30 { |
|
31 // store the name of this test step |
|
32 SetTestStepName(_L("PhbkSyncGetSyncModeTest_01")); |
|
33 } |
|
34 |
|
35 CPhbkSyncGetSyncModeTest_01::~CPhbkSyncGetSyncModeTest_01() |
|
36 { |
|
37 } |
|
38 |
|
39 TVerdict CPhbkSyncGetSyncModeTest_01::doTestStepL( ) |
|
40 { |
|
41 TInt result; |
|
42 RPhoneBookSession::TPhonebookSyncMode syncMode; |
|
43 for (int i=0; i<KTotalNumberOfPhoneBook; i++) |
|
44 { |
|
45 result = iSession.GetSyncMode(syncMode, iPhoneBook[i]); |
|
46 TESTCHECKL(result, KErrNone); |
|
47 TESTCHECK(syncMode, RPhoneBookSession::EAutoCurrentIcc); |
|
48 } |
|
49 |
|
50 return TestStepResult(); |
|
51 } |