sl@0: /* sl@0: * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: #ifndef __T_RICHOOM_H__ sl@0: #define __T_RICHOOM_H__ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: class CT_RICHOOM : public CTestStep sl@0: { sl@0: public: sl@0: CT_RICHOOM(); sl@0: protected: sl@0: TVerdict doTestStepL(); sl@0: private: sl@0: CRichText* LoadIntoTextL(TFileName& aFileName); sl@0: void ConstructOOM(); sl@0: void CopyPasteOOM(); sl@0: void CopyPasteOOM2(); sl@0: void WriteInlineL(RWriteStream& aStream,CRichText* aRichText); sl@0: void ReadInlineL(RReadStream& aStream,CRichText* aRichText); sl@0: CStyleList* CreatePopulatedStyleList(); sl@0: void SaveLoadOOM(); sl@0: void CheckTextIntegrity(const CRichText* aText); sl@0: void BasicEditOOM(); sl@0: void AppendTest1L(); sl@0: void AppendTest2L(CRichText* aTarget); sl@0: void AppendTestNewL(CRichText* aTarget); sl@0: void AppendTest3L(CRichText* aTarget); sl@0: void AppendTakingSolePictureOwnershipOOM(); sl@0: void DoAppendParagraphOOM(CRichText* aRichText,TBool aUnderOOM,TInt aReplicas); sl@0: void AppendParagraphOOM(); sl@0: void ApplyCharFormatOOM1(); sl@0: void ApplyCharFormatOOM2(); sl@0: void doMainL(); sl@0: void setupCleanup(); sl@0: void DeleteDataFile(const TDesC& aFullName); sl@0: }; sl@0: sl@0: _LIT(KTestStep_T_RICHOOM, "T_RICHOOM"); sl@0: sl@0: #endif