2971 _FOFF(CAppSidChecker, iDtor_ID_Key), |
2971 _FOFF(CAppSidChecker, iDtor_ID_Key), |
2972 NULL, resolverParams) ); |
2972 NULL, resolverParams) ); |
2973 return reinterpret_cast<CAppSidChecker*>(ptr); |
2973 return reinterpret_cast<CAppSidChecker*>(ptr); |
2974 } |
2974 } |
2975 #endif |
2975 #endif |
|
2976 |
|
2977 ///// |
|
2978 //Step to Set RemoveWithLastDependent property |
|
2979 ///// |
|
2980 |
|
2981 CSwisSetRemoveWithLastDependent::CSwisSetRemoveWithLastDependent() |
|
2982 { |
|
2983 } |
|
2984 |
|
2985 CSwisSetRemoveWithLastDependent::~CSwisSetRemoveWithLastDependent() |
|
2986 { |
|
2987 } |
|
2988 |
|
2989 TVerdict CSwisSetRemoveWithLastDependent::doTestStepL() |
|
2990 { |
|
2991 RSisRegistrySession registrySession; |
|
2992 User::LeaveIfError(registrySession.Connect()); |
|
2993 CleanupClosePushL(registrySession); |
|
2994 |
|
2995 TInt packageUid = 0; |
|
2996 GetHexFromConfig(ConfigSection(),_L("packageUid"),packageUid); |
|
2997 TUid expectedPkgUid = TUid::Uid(packageUid); |
|
2998 RSisRegistryEntry regEntry; |
|
2999 CleanupClosePushL(regEntry); |
|
3000 User::LeaveIfError(regEntry.Open(registrySession, expectedPkgUid)); |
|
3001 TRAPD(err, regEntry.SetRemoveWithLastDependentL(expectedPkgUid)); |
|
3002 if(KErrNone == err) |
|
3003 SetTestStepResult(EPass); |
|
3004 else |
|
3005 SetTestStepResult(EFail); |
|
3006 |
|
3007 CleanupStack::PopAndDestroy(2, ®istrySession); |
|
3008 return TestStepResult(); |
|
3009 |
|
3010 } |
|
3011 |
2976 // End of file |
3012 // End of file |