equal
deleted
inserted
replaced
50 /** |
50 /** |
51 @file |
51 @file |
52 @internalTechnology |
52 @internalTechnology |
53 */ |
53 */ |
54 |
54 |
|
55 #define __E32TEST_EXTENSION__ |
55 #include <f32file.h> |
56 #include <f32file.h> |
56 #include <e32test.h> |
57 #include <e32test.h> |
57 #include <e32std.h> |
58 #include <e32std.h> |
58 #include <e32std_private.h> |
|
59 #include <e32svr.h> |
59 #include <e32svr.h> |
60 #include <hal.h> |
60 #include <hal.h> |
61 #include <massstorage.h> |
61 #include <massstorage.h> |
62 #include "t_ms_main.h" |
62 #include "t_ms_main.h" |
63 #include "testusbc.h" |
63 #include "testusbc.h" |
569 test.Next(_L("...cancelling original request")); |
569 test.Next(_L("...cancelling original request")); |
570 fs.NotifyDismountCancel(trsClientComplete); |
570 fs.NotifyDismountCancel(trsClientComplete); |
571 test(trsClientComplete == KErrCancel); |
571 test(trsClientComplete == KErrCancel); |
572 test.Next(_L("...issuing a forced dismount request")); |
572 test.Next(_L("...issuing a forced dismount request")); |
573 fs.NotifyDismount(removalDrvNo, trsClientComplete, EFsDismountForceDismount); |
573 fs.NotifyDismount(removalDrvNo, trsClientComplete, EFsDismountForceDismount); |
574 test(trsClientComplete == KErrNone); |
574 |
|
575 User::WaitForRequest(trsClientComplete); |
|
576 test_KErrNone(trsClientComplete.Int()); |
575 expectedAllowDismountRet = KErrNotReady; |
577 expectedAllowDismountRet = KErrNotReady; |
576 expectedCompletionCode = KErrNone; |
578 expectedCompletionCode = KErrNone; |
577 } |
579 } |
578 |
580 |
579 test.Next(_L("Allow dismount and check response")); |
581 test.Next(_L("Allow dismount and check response")); |
687 clientFs[i].Close(); |
689 clientFs[i].Close(); |
688 |
690 |
689 // Since all clients have been closed, the next stage should result in a dismount |
691 // Since all clients have been closed, the next stage should result in a dismount |
690 test.Next(_L("Notify clients of pending media removal and check status")); |
692 test.Next(_L("Notify clients of pending media removal and check status")); |
691 fs.NotifyDismount(removalDrvNo, trsClientComplete, EFsDismountNotifyClients); |
693 fs.NotifyDismount(removalDrvNo, trsClientComplete, EFsDismountNotifyClients); |
692 test(trsClientComplete == KErrNone); |
694 User::WaitForRequest(trsClientComplete); |
|
695 test_KErrNone(trsClientComplete.Int()); |
693 |
696 |
694 test.Next(_L("Mount FAT FS on to the removal drive")); |
697 test.Next(_L("Mount FAT FS on to the removal drive")); |
695 LOG_AND_TEST(KErrNone, fs.MountFileSystem(fsName, removalDrvNo)); |
698 LOG_AND_TEST(KErrNone, fs.MountFileSystem(fsName, removalDrvNo)); |
696 |
699 |
697 TRequestStatus trs1; |
700 TRequestStatus trs1; |