--- a/kerneltest/e32test/resourceman/resourceman_psl/rescontrol_psl.cpp Fri Sep 17 08:37:04 2010 +0300
+++ b/kerneltest/e32test/resourceman/resourceman_psl/rescontrol_psl.cpp Mon Oct 04 02:35:35 2010 +0300
@@ -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)
{