diff -r 6465d5bb863a -r 13e71d907dc3 profilesservices/FileList/tsrc/public/basic/inc/T_CFLDFileListContainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profilesservices/FileList/tsrc/public/basic/inc/T_CFLDFileListContainer.h Thu Nov 04 13:38:47 2010 +0800 @@ -0,0 +1,107 @@ +/* +* Copyright (c) 2007 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: +* CFLDFileListContainer test class. +* +* +*/ + + +#ifndef __T_CFLDFileListContainer_H__ +#define __T_CFLDFileListContainer_H__ + +// INCLUDES +#include +#include +#include + +#include +#include +#include + + +class CFLDFileListContainer; + +// CLASS DEFINITION + +/* +----------------------------------------------------------------------------- + + DESCRIPTION + + Test suite for class CEUnitTestCase. + +----------------------------------------------------------------------------- +*/ +class T_CFLDFileListContainer + : public CEUnitTestSuiteClass + { + public: // Constructors and destructors + static T_CFLDFileListContainer* NewLC(); + ~T_CFLDFileListContainer(); + + private: // New methods + T_CFLDFileListContainer(); + void ConstructL(); + + private: // Test case functions + void EmptySetupL(); + void SetupL(); + void Teardown(); + + // tests: + void TestCreateObjectL(); + + void LaunchTestL(); + void InsertNullItemTestL(); + void InsertEndNullItemTestL(); + void SetDelayTestL(); + void SetVolumeTestL(); + void SetRingingTypeTestL(); + void SetVibraTestL(); + + void SetAutomatedTypeTestL(); + void Set3dEffectsTestL(); + void SetMaxFileSizeTestL(); + + void AddExclusiveMimeTypeTestL(); + void AddExclusiveMediaTypeTestL(); + void SetWantedMimeTypesTestL(); + void SetWantedMediaTypesTestL(); + void ResetExclusiveMimeTypesTestL(); + void ResetExclusiveMediaTypesTestL(); + + private: // Implementation + EUNIT_DECLARE_TEST_TABLE; + + private: // Data + RConeResourceLoader* iResourceLoader; + + CFLDFileListContainer* iContainer; + CFLDFileListContainer* iContainer1; + CFLDFileListContainer* iContainer2; + CFLDFileListContainer* iContainer3; + CFLDFileListContainer* iContainer4; + CFLDFileListContainer* iContainer5; + RWsSession iWsSession; + + CDesCArray* iMimeTypeArray; + RArray iMediaTypeArray; + + }; + +#endif // __T_CFLDFileListContainer_H__ + +// end of file +