diff -r 2bb96f4ecad8 -r 8e7494275d3a contentctrl_plat/ds_contact_adapter_customization_api/tsrc/ContactsAdapter/cnsmldummydataprovider_test.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contentctrl_plat/ds_contact_adapter_customization_api/tsrc/ContactsAdapter/cnsmldummydataprovider_test.h Tue Aug 31 15:05:37 2010 +0300 @@ -0,0 +1,87 @@ +/* +* Copyright (c) 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: Header file for contact adapter's dataprovider unit tests. +* +*/ + +#ifndef __CNSMLDUMMYDATAPROVIDER_TEST_H__ +#define __CNSMLDUMMYDATAPROVIDER_TEST_H__ + +// INCLUDES +#include +#include + +#include "nsmldummydataprovider.h" + +// CLASS DEFINITION +/** + * Generated EUnit test suite class. + */ +NONSHARABLE_CLASS( CNSmlDummyDataProvider_Test ) + : public CEUnitTestSuiteClass + { + public: // Constructors and destructor + + static CNSmlDummyDataProvider_Test* NewL(); + static CNSmlDummyDataProvider_Test* NewLC(); + ~CNSmlDummyDataProvider_Test(); + + private: // Constructors + + CNSmlDummyDataProvider_Test(); + void ConstructL(); + + private: // New methods + + void Empty() {}; + + void SetupL(); + + void Teardown(); + + void NewLL(); + + void CreateAdapterL(); + + void GetStoreFormatResourceFileLL(); + + void DoStoreFormatLL(); + + void TestStoreSupportForPartialSyncL(); + + void TestStoreSupportMimeTypeL(); + + void DoListStoresLCL(); + + void DoOnFrameworkEvent(); + + void DoSupportedServerFiltersL(); + + void DoCheckSupportedServerFiltersL(); + + void DoCheckServerFiltersL(); + + void DoGenerateRecordFilterQueryL(); + + void DoGenerateFieldFilterQueryL(); + + private: // Data + + CNSmlDummyDataProvider* iCNSmlDummyDataProvider; + + EUNIT_DECLARE_TEST_TABLE; + + }; + +#endif // __CNSMLDUMMYDATAPROVIDER_TEST_H__