localisation/apparchitecture/tef/T_WgnamStep.CPP
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-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 the License "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".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    13 // Description:
    13 // Description:
    14 // Test accessing window group name.\n
    14 // Test accessing window group name.\n
    15 // Tests accessing & modifier functionality of CApaWindowGroupName API.\n
    15 // Tests accessing & modifier functionality of CApaWindowGroupName API.\n
    16 // 
    16 // 
    17 //
    17 //
    18 
       
    19 
       
    20 
    18 
    21 /**
    19 /**
    22  @file
    20  @file
    23  @internalComponent - Internal Symbian test code 
    21  @internalComponent - Internal Symbian test code 
    24 */
    22 */
   201 	apaWindowGroupName->SetAppUid(uid);
   199 	apaWindowGroupName->SetAppUid(uid);
   202 	PrintWindowGroupName(apaWindowGroupName->WindowGroupName());
   200 	PrintWindowGroupName(apaWindowGroupName->WindowGroupName());
   203 	TEST(apaWindowGroupName->AppUid()==uid);
   201 	TEST(apaWindowGroupName->AppUid()==uid);
   204 	INFO_PRINTF1(_L("\n"));
   202 	INFO_PRINTF1(_L("\n"));
   205 	// User::After(2000000);
   203 	// User::After(2000000);
       
   204 	
       
   205 	// RDebug::Print(_L("Block 5a"));
       
   206 	INFO_PRINTF1(_L("Test setting appUid starting with 0"));
       
   207 	const TUid uid1={ 0x00000111 };
       
   208 	PrintWindowGroupName(apaWindowGroupName->WindowGroupName());
       
   209 	INFO_PRINTF2(_L("Setting app uid to %x\n"), uid1.iUid);
       
   210 	apaWindowGroupName->SetAppUid(uid1);
       
   211 	PrintWindowGroupName(apaWindowGroupName->WindowGroupName());
       
   212 	TEST(apaWindowGroupName->AppUid()==uid1);
       
   213 	INFO_PRINTF1(_L("\n"));
   206 
   214 
   207 	// test setting caption
   215 	// test setting caption
   208 	// RDebug::Print(_L("Block 6"));
   216 	// RDebug::Print(_L("Block 6"));
   209 	INFO_PRINTF1(_L("Test setting caption"));
   217 	INFO_PRINTF1(_L("Test setting caption"));
   210 	PrintWindowGroupName(apaWindowGroupName->WindowGroupName());
   218 	PrintWindowGroupName(apaWindowGroupName->WindowGroupName());
   326 		TEST(r==KErrNone);
   334 		TEST(r==KErrNone);
   327 	__UHEAP_MARKEND;
   335 	__UHEAP_MARKEND;
   328 
   336 
   329 	return TestStepResult();
   337 	return TestStepResult();
   330 }
   338 }
       
   339 
       
   340