diff -r d45b74d3fb20 -r d57b86b1867a kerneltest/e32test/resourceman/resourceman_psl/rescontrol_psl.cpp --- a/kerneltest/e32test/resourceman/resourceman_psl/rescontrol_psl.cpp Tue Aug 31 11:40:45 2010 +0100 +++ b/kerneltest/e32test/resourceman/resourceman_psl/rescontrol_psl.cpp Mon Sep 13 15:16:07 2010 +0100 @@ -175,6 +175,22 @@ return(TheController.InitResources()); } +/** This function is used only for testing purpose. Test default implementation DPowerController::DoRegisterResourceController() + */ +EXPORT_C TInt DSimulatedPowerResourceController::ResourceControllerRegistration() + { + Kern::Printf("DSimulatedPowerResourceController::ResourceControllerRegistration()\n"); + TInt r = KErrNone; + if(TPowerController::PowerController()) + { + r = TPowerController::PowerController()->DoRegisterResourceController(); + } + else + r = KErrNotFound; + + return r; + } + /** This function changes the state of the resource to appropriate value */ TInt DSimulatedPowerResourceController::ChangeResource(TPowerRequest& req, TInt& aCurrentLevel, TInt aMaxLevel, TInt aMinLevel) {