fbs/fontandbitmapserver/tfbs/TFBS.H
branchRCL_3
changeset 26 15986eb6c500
parent 0 5d03bc08d59c
equal deleted inserted replaced
19:ac96196b945c 26:15986eb6c500
     1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    18 
    18 
    19 #include <fbs.h>
    19 #include <fbs.h>
    20 #include <gdi.h>
    20 #include <gdi.h>
    21 #include <test/fontinjector.h>
    21 #include <test/fontinjector.h>
    22 #include <test/TGraphicsHarness.h>
    22 #include <test/TGraphicsHarness.h>
    23 #include "tfbsmultithread.h"
       
    24 
    23 
    25 _LIT(KTempFilename,"c:\\temp.mbm");
    24 _LIT(KTempFilename,"c:\\temp.mbm");
    26 _LIT(KTestBitmapOnZ,"z:\\system\\data\\tfbs.mbm");
    25 _LIT(KTestBitmapOnZ,"z:\\system\\data\\tfbs.mbm");
    27 _LIT(KTestBitmapOnC,"c:\\tfbs.mbm");
    26 _LIT(KTestBitmapOnC,"c:\\tfbs.mbm");
    28 _LIT(KFail1Filename,"c:\\testfailed_bitmap1.mbm");
    27 _LIT(KFail1Filename,"c:\\testfailed_bitmap1.mbm");
   136 	void CheckResourceCount();
   135 	void CheckResourceCount();
   137 	void CheckFontNameAlias(const TDesC& aFontAlias, const TDesC& aFontName, TInt& aSize);
   136 	void CheckFontNameAlias(const TDesC& aFontAlias, const TDesC& aFontName, TInt& aSize);
   138 	TInt LoadOpenFontLibraries();
   137 	TInt LoadOpenFontLibraries();
   139 	TBool CheckTypefacesSupport(const TTypefaceSupport& aInfo1, const TTypefaceSupport& aInfo2);
   138 	TBool CheckTypefacesSupport(const TTypefaceSupport& aInfo1, const TTypefaceSupport& aInfo2);
   140 	void LoadFontsL(const TDesC& aFontsDir);
   139 	void LoadFontsL(const TDesC& aFontsDir);
   141 	void CreateSecondThreadAndCheckPanicL(TFbsTestThreadInfo& aTestCase, TInt aPanicCode, TExitCategoryName aExitCategory, const TDesC &aThreadName);
   140 	void SecondThreadPanicInvalidHandleInIpcCallL();
   142 	static TInt SecondThreadStart(TAny* aTestInfo);
   141 	void CreateSecondThreadAndCheckPanicL(void (CTFbs::*aMethodL)(), TInt aPanicCode, const TDesC& aPanicCategory, const TDesC &aThreadName);
   143 	static TInt SecondThreadMainL(TFbsTestThreadInfo* aTestInfo);
   142 	static TInt MethodDelegatorThreadFunction(TAny* aDelegator);
   144 	static TInt SecondThreadPanicInvalidHandleInIpcCall();
       
   145 
   143 
   146 private:
   144 private:
   147 	TInt iHandle;
   145 	TInt iHandle;
   148 	RFbsSession* iFbs;
   146 	RFbsSession* iFbs;
   149 	CFbsTypefaceStore* iTs;
   147 	CFbsTypefaceStore* iTs;