installationservices/swi/test/swicaptests/registrycaptest.cpp
changeset 53 ae54820ef82c
parent 42 d17dc5398051
child 50 c6e8afe0ba85
equal deleted inserted replaced
52:92f864ef0288 53:ae54820ef82c
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   490 	CheckFailL(err, _L("RemoveDriveL"));
   490 	CheckFailL(err, _L("RemoveDriveL"));
   491 #endif
   491 #endif
   492 
   492 
   493 	TRAP(err, session.RecoverL());
   493 	TRAP(err, session.RecoverL());
   494 	CheckFailL(err, _L("RecoverL"));
   494 	CheckFailL(err, _L("RecoverL"));
       
   495 	
       
   496 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   497 	TRAP(err, session.SetComponentPresenceL(1, EFalse));
       
   498 	CheckFailL(err, _L("SetComponentPresenceL"));
       
   499 	
       
   500 	// Negative tests
       
   501 	//TRAP(err, session.SetComponentPresenceL(1234, EFalse));
       
   502 	//CheckFailL(err, _L("SetComponentPresenceL Negative 1"));
       
   503     //TRAP(err, session.SetComponentPresenceL(0, EFalse));
       
   504     //CheckFailL(err, _L("SetComponentPresenceL Negative 2"));    
       
   505     //TRAP(err, session.SetComponentPresenceL(-1, EFalse));
       
   506     //CheckFailL(err, _L("SetComponentPresenceL Negative 3"));
       
   507 #endif
   495 
   508 
   496 	CleanupStack::PopAndDestroy(&session);
   509 	CleanupStack::PopAndDestroy(&session);
   497 	}
   510 	}
   498 
   511 
   499 
   512