diff -r 9f66f99ee56f -r 1b081cb0800b graphicshwdrivers/surfacemgr/test/src/tsurfacemanager.cpp --- a/graphicshwdrivers/surfacemgr/test/src/tsurfacemanager.cpp Fri Sep 24 16:14:28 2010 +0300 +++ b/graphicshwdrivers/surfacemgr/test/src/tsurfacemanager.cpp Fri Sep 24 16:44:34 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 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" @@ -21,6 +21,7 @@ @internalComponent - Internal Symbian test code */ + #include "tsurfacemanager.h" #include #include @@ -29,6 +30,9 @@ #include #include #include +#include + +using namespace surfaceHints; const TInt KCountLimit = 10000; @@ -3188,36 +3192,32 @@ //Add HintPair1 RSurfaceManager::THintPair hintPair1; - hintPair1.iKey.iUid = 0x123257; - hintPair1.iValue = 300; - hintPair1.iMutable = ETrue; + hintPair1.Set(TUid::Uid(KSurfaceContent), EStillImage, ETrue); TEST(KErrNone == iSurfaceManager.AddSurfaceHint(surfaceId, hintPair1)); RSurfaceManager::THintPair hintPairCheck1; - hintPairCheck1.iKey.iUid = 0x123257; + hintPairCheck1.iKey.iUid = KSurfaceContent; CheckHintPair(surfaceId, hintPairCheck1, hintPair1); //Add HintPair2 RSurfaceManager::THintPair hintPair2; - hintPair2.iKey.iUid = 0x123267; - hintPair2.iValue = 100; + hintPair2.iKey.iUid = KSurfaceProtection; + hintPair2.iValue = EAllowAnalog | EAllowDigital; hintPair2.iMutable = EFalse; TEST(KErrNone == iSurfaceManager.AddSurfaceHint(surfaceId, hintPair2)); RSurfaceManager::THintPair hintPairCheck2; - hintPairCheck2.iKey.iUid = 0x123267; + hintPairCheck2.iKey.iUid = KSurfaceProtection; CheckHintPair(surfaceId, hintPairCheck2, hintPair2); CheckHintPair(surfaceId, hintPairCheck1, hintPair1); //Add HintPair3 RSurfaceManager::THintPair hintPair3; - hintPair3.iKey.iUid = 0x123324; - hintPair3.iValue = 500; - hintPair3.iMutable = ETrue; + hintPair3.Set(TUid::Uid(KSurfaceCharacteristics), ENotPersistable, EFalse); TEST(KErrNone == iSurfaceManager.AddSurfaceHint(surfaceId, hintPair3)); RSurfaceManager::THintPair hintPairCheck3; - hintPairCheck3.iKey.iUid = 0x123324; + hintPairCheck3.iKey.iUid = KSurfaceCharacteristics; CheckHintPair(surfaceId, hintPairCheck3, hintPair3); CheckHintPair(surfaceId, hintPairCheck2, hintPair2); CheckHintPair(surfaceId, hintPairCheck1, hintPair1); @@ -4439,3 +4439,4 @@ if(!aCondition) User::Leave(TEST_ERROR_CODE); // leave with standard error code } +