kerneltest/f32test/smassstorage/src/t_gml_tur.cpp
changeset 281 13fbfa31d2ba
parent 0 a41df078684a
child 286 48e57fb1237e
--- a/kerneltest/f32test/smassstorage/src/t_gml_tur.cpp	Fri Sep 17 08:37:04 2010 +0300
+++ b/kerneltest/f32test/smassstorage/src/t_gml_tur.cpp	Mon Oct 04 02:35:35 2010 +0300
@@ -13,12 +13,13 @@
 // Description:
 //
 
+#define __E32TEST_EXTENSION__
 #include <e32std.h>
-#include <e32std_private.h>
 #include <e32test.h>
 #include <testusbc.h>
 #include "t_gml_tur_protocol.h"
 #include "t_gml_tur_controller.h"
+#include "protocol.h"
 #include "cbulkonlytransport.h"
 
 LOCAL_D RTest test(_L("t_gml_tur"));
@@ -96,7 +97,7 @@
 	gController = controller;
 	controller->CreateL(0);
 	
-	CBulkOnlyTransport* transport = NULL;
+	MTransportBase* transport = NULL;
 	TRAP(err, transport = CBulkOnlyTransport::NewL(numDrives, *controller));
 	if (err != KErrNone)
 		{
@@ -217,14 +218,15 @@
 	//Wait for thread to die
 	test.Printf(_L("Waiting for controller thread to die\n"));
 	User::WaitForRequest(logonStatus);
-	transportThread.Close();
+    transportThread.Close();
+
 	test.Printf(_L("The thread is dead, long live the thread\n"));
-	
+
 	ldd.Close();
 	
 	test.Printf(_L("Unloading ldd"));
 	err = User::FreeLogicalDevice(KLddName);
-	test(err == KErrNone);
+	test_KErrNone(err);
 	
     test.End();