messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionInsertMedia.cpp
changeset 58 6c34d0baa0b1
parent 0 8e480a14352b
equal deleted inserted replaced
55:6f4453afd006 58:6c34d0baa0b1
    64 	RMsvServerSession server;
    64 	RMsvServerSession server;
    65 	TFileName fsName;
    65 	TFileName fsName;
    66 	
    66 	
    67 	TInt drive = ObtainValueParameterL<TInt>(TestCase(),ActionParameters().Parameter(0));
    67 	TInt drive = ObtainValueParameterL<TInt>(TestCase(),ActionParameters().Parameter(0));
    68 
    68 
    69 	fs.Connect();
    69 	TInt err = fs.Connect();
       
    70 	User::LeaveIfError(err);
    70 	server.Connect(fs);
    71 	server.Connect(fs);
    71 
    72 
    72 	// This tells the server to pretend that its media is missing next time it gets a disk notification
    73 	// This tells the server to pretend that its media is missing next time it gets a disk notification
    73 	server.SetFailure(EDiskFailure, EFalse);
    74 	server.SetFailure(EDiskFailure, EFalse);
    74 
    75