kerneltest/f32test/shostmassstorage/msman/test/ttestutils.cpp
changeset 297 b2826f67641f
parent 0 a41df078684a
equal deleted inserted replaced
296:94f2adf59133 297:b2826f67641f
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // USB Host Mass Storage
    14 // USB Host Mass Storage
    15 // 
    15 //
    16 //
    16 //
    17 
    17 
    18 
    18 
    19 
    19 
    20 /**
    20 /**
    24 #include <e32std.h>
    24 #include <e32std.h>
    25 #include <e32property.h>
    25 #include <e32property.h>
    26 
    26 
    27 
    27 
    28 #include "ttestutils.h"
    28 #include "ttestutils.h"
    29 #include "tmslog.h"
       
    30 #include "e32test.h"
    29 #include "e32test.h"
    31 #include "e32debug.h"
    30 #include "e32debug.h"
    32 
    31 
    33 extern RTest test;
    32 extern RTest test;
    34 
    33 
    44 
    43 
    45 
    44 
    46 
    45 
    47 void TTestUtils::WaitForBusEventL()
    46 void TTestUtils::WaitForBusEventL()
    48     {
    47     {
    49     __MSFNSLOG
       
    50     _LIT_SECURITY_POLICY_PASS(KMsAllowAllPolicy);
    48     _LIT_SECURITY_POLICY_PASS(KMsAllowAllPolicy);
    51     _LIT_SECURITY_POLICY_S0(KMsWritePolicy, KUsbmanSvrSid.iUid);
    49     _LIT_SECURITY_POLICY_S0(KMsWritePolicy, KUsbmanSvrSid.iUid);
    52 
    50 
    53     RProperty evProp;
    51     RProperty evProp;
    54     User::LeaveIfError(evProp.Define(KMyPropertyCat,
    52     User::LeaveIfError(evProp.Define(KMyPropertyCat,
    72     }
    70     }
    73 
    71 
    74 
    72 
    75 TBool TTestUtils::WaitForConnectionStateEventL()
    73 TBool TTestUtils::WaitForConnectionStateEventL()
    76     {
    74     {
    77     __MSFNSLOG
       
    78     _LIT_SECURITY_POLICY_PASS(KMsAllowAllPolicy);
    75     _LIT_SECURITY_POLICY_PASS(KMsAllowAllPolicy);
    79     _LIT_SECURITY_POLICY_S0(KMsWritePolicy, KUsbmanSvrSid.iUid);
    76     _LIT_SECURITY_POLICY_S0(KMsWritePolicy, KUsbmanSvrSid.iUid);
    80 
    77 
    81     RProperty evProp;
    78     RProperty evProp;
    82     User::LeaveIfError(evProp.Define(KUsbmanSvrSid,
    79     User::LeaveIfError(evProp.Define(KUsbmanSvrSid,