diff -r 000000000000 -r e686773b3f54 pimprotocols/phonebooksync/Test/TE_PhBkSync/TestValidateContactSteps.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pimprotocols/phonebooksync/Test/TE_PhBkSync/TestValidateContactSteps.cpp Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,1035 @@ +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// This contains PhbkSync API ValidateContact() related Unit Test Steps +// +// + +#include "TE_PhBkSyncBase.h" +#include "TestValidateContactSteps.h" + +/** + * Test validating whether a read operation is possible on valid + * contacts. Repeat this test case for all supported phonebooks. + */ +// +// Test step1 -- Test#37 in Unit Test Spec. Doc. // +// +CPhbkSyncValidateContactTest_01::CPhbkSyncValidateContactTest_01() + { + // store the name of this test step + SetTestStepName(_L("PhbkSyncValidateContactTest_01")); + } + +CPhbkSyncValidateContactTest_01::~CPhbkSyncValidateContactTest_01() + { + } + +TVerdict CPhbkSyncValidateContactTest_01::doTestStepL( ) + { + TContactItemId id; + TInt result; + + // destroy the default .ini file if it exists + DestroyDefaultIniFileL(); + + SetSimTsyTestNumberL(18); + + // Set mode as EAutoCurrentIcc for all phonebooks + TInt i(0); + for (i=0; i