kerneltest/e32test/rpmb/t_rpmb.h
changeset 287 ddfd5aa0d58f
equal deleted inserted replaced
286:48e57fb1237e 287:ddfd5aa0d58f
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32test/rpmb/t_rpmb.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21  @prototype
       
    22 */
       
    23 
       
    24 // name of kernel side RPMB test driver
       
    25 _LIT(KRpmbTestLddName,"d_rpmb");
       
    26 
       
    27 // user side client object for accessing kernel side RPMB test driver
       
    28 class RTestRpmb : public RBusLogicalChannel
       
    29 	{
       
    30 public:
       
    31 	enum TControl
       
    32 		{
       
    33 		ERunTests=0,
       
    34 		};
       
    35 #ifndef __KERNEL_MODE__
       
    36 // these public methods are only accessed from the user side	
       
    37 public:
       
    38 	inline TInt Open()
       
    39 		{ return DoCreate(KRpmbTestLddName,TVersion(),KNullUnit,NULL,NULL); }
       
    40 	inline TInt RunTests()
       
    41 		{ return DoControl(ERunTests); }
       
    42 #endif // __KERNEL_MODE__
       
    43 	};