kerneltest/f32test/smassstorage/scsiprot/t_ms_scsi.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
child 286 48e57fb1237e
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
   589 /** c'tor */
   589 /** c'tor */
   590 CProxyDrive::CProxyDrive(CMountCB* aMount)
   590 CProxyDrive::CProxyDrive(CMountCB* aMount)
   591 : iMount(aMount)
   591 : iMount(aMount)
   592 	{}
   592 	{}
   593 
   593 
   594 TInt CProxyDrive::ControlIO(const RMessagePtr2&, TInt, TAny*, TAny*)
   594 EXPORT_C TInt CProxyDrive::ControlIO(const RMessagePtr2&, TInt, TAny*, TAny*)
   595 	{ return KErrNone; }
   595 	{ return KErrNone; }
   596 
   596 
   597 TInt CProxyDrive::Read (TInt64 aPos, TInt aLength, const TAny* aTrg, TInt, TInt, TInt)
   597 EXPORT_C TInt CProxyDrive::Read (TInt64 aPos, TInt aLength, const TAny* aTrg, TInt, TInt, TInt)
   598 	{ return Read(aPos, aLength, *(TDes8*)aTrg); }
   598 	{ return Read(aPos, aLength, *(TDes8*)aTrg); }
   599 
   599 
   600 TInt CProxyDrive::Write (TInt64 aPos, TInt, const TAny* aSrc, TInt, TInt, TInt)
   600 EXPORT_C TInt CProxyDrive::Write (TInt64 aPos, TInt, const TAny* aSrc, TInt, TInt, TInt)
   601 	{ return Write(aPos, *(TDesC8*)aSrc); }
   601 	{ return Write(aPos, *(TDesC8*)aSrc); }
   602 
   602 
   603 // Implemented the GetInterface method here as this are usually 
   603 // Implemented the GetInterface method here as this are usually 
   604 // exported by EFILE, but these unit tests don't link to it.
   604 // exported by EFILE, but these unit tests don't link to it.
   605 
   605 
   606 TInt CProxyDrive::GetInterface(TInt /*aInterfaceId*/, TAny*& /*aInterface*/, TAny* /*aInput*/)
   606 EXPORT_C TInt CProxyDrive::GetInterface(TInt /*aInterfaceId*/, TAny*& /*aInterface*/, TAny* /*aInput*/)
   607 	{ return KErrNotSupported; }
   607 	{ return KErrNotSupported; }
   608 
   608 
   609 // Implemented the GetLastErrorInfo method here as this is usually 
   609 // Implemented the GetLastErrorInfo method here as this is usually 
   610 // exported by EFILE, but these unit tests don't link to it.
   610 // exported by EFILE, but these unit tests don't link to it.
   611 TInt CProxyDrive::GetLastErrorInfo(TDes8& /*anErrorInfo*/)
   611 EXPORT_C TInt CProxyDrive::GetLastErrorInfo(TDes8& /*anErrorInfo*/)
   612 	{ return KErrNotSupported; }
   612 	{ return KErrNotSupported; }
   613 
   613 
   614 CProxyDrive::~CProxyDrive()
   614 CProxyDrive::~CProxyDrive()
   615 	{ }
   615 	{ }
   616 
   616 
   617 
   617 EXPORT_C TInt CProxyDrive::DeleteNotify(TInt64, TInt)
   618 TInt CProxyDrive::DeleteNotify(TInt64, TInt)
       
   619 	{ return KErrNone; }
   618 	{ return KErrNone; }
   620 
   619 
   621 
   620 
   622 /** c'tor */
   621 /** c'tor */
   623 CTestProxyDrive::CTestProxyDrive()
   622 CTestProxyDrive::CTestProxyDrive()