diff -r 000000000000 -r e686773b3f54 pimprotocols/phonebooksync/Test/TE_PhBkSync/TestDeleteContactSteps.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pimprotocols/phonebooksync/Test/TE_PhBkSync/TestDeleteContactSteps.cpp Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,491 @@ +// Copyright (c) 2002-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 DeleteContact() related Unit Test Steps +// +// + + +#include "TE_PhBkSyncBase.h" +#include "TestDeleteContactSteps.h" + +/** + * Test deleting a contact by specifying a valid ICC slot. + * Repeat for all supported phonebooks. + */ +// +// Test step1 -- Test#73 in Unit Test Spec. Doc. // +// +CPhbkSyncDeleteContactTest_01::CPhbkSyncDeleteContactTest_01() + { + // store the name of this test step + SetTestStepName(_L("PhbkSyncDeleteContactTest_01")); + } + +CPhbkSyncDeleteContactTest_01::~CPhbkSyncDeleteContactTest_01() + { + } + +TVerdict CPhbkSyncDeleteContactTest_01::doTestStepL( ) + { + TContactItemId id; + TInt result; + TInt i(0); + TRequestStatus status; + + // 1. set mode as EAutoCurrentIcc for all phonebooks + for (i=0; i