remotestoragefw/mountmanager/tsrc/public/basic/inc/T_RSFW_TA_Basic.h
branchRCL_3
changeset 15 88ee4cf65e19
parent 12 87c71b25c937
child 16 1aa8c82cb4cb
equal deleted inserted replaced
12:87c71b25c937 15:88ee4cf65e19
     1 /*
       
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Header file for EUnit test app for MountMan API
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __T_MOUNTMAN_H__
       
    20 #define __T_MOUNTMAN_H__
       
    21 
       
    22 //  EXTERNAL INCLUDES
       
    23 #include <CEUnitTestSuiteClass.h>
       
    24 #include <rsfwmountman.h>
       
    25 
       
    26 //  INTERNAL INCLUDES
       
    27 
       
    28 
       
    29 //  FORWARD DECLARATIONS
       
    30 class CDesC16Array;
       
    31 
       
    32 #include <e32def.h>
       
    33 #ifndef NONSHARABLE_CLASS
       
    34     #define NONSHARABLE_CLASS(x) class x
       
    35 #endif
       
    36 
       
    37 //  CLASS DEFINITION
       
    38 /**
       
    39  *
       
    40  * EUnitWizard generated test class. 
       
    41  *
       
    42  */
       
    43 NONSHARABLE_CLASS( T_MountMan )
       
    44      : public CEUnitTestSuiteClass
       
    45     {
       
    46     public:     // Constructors and destructors
       
    47 
       
    48         /**
       
    49          * Two phase construction
       
    50          */
       
    51         static T_MountMan* NewL();
       
    52         static T_MountMan* NewLC();
       
    53         /**
       
    54          * Destructor
       
    55          */
       
    56         ~T_MountMan();
       
    57 
       
    58     private:    // Constructors and destructors
       
    59 
       
    60         T_MountMan();
       
    61         void ConstructL();
       
    62 
       
    63     public:     // From observer interface
       
    64 
       
    65         
       
    66 
       
    67     private:    // New methods
       
    68 
       
    69          void SetupL();
       
    70 
       
    71          void Teardown();         
       
    72          
       
    73          // CRsfwMountEntry API
       
    74          
       
    75          void TestSetMountEntryL();
       
    76          
       
    77          void TestSetItemL();
       
    78          
       
    79          void TestSetItem2L();
       
    80          
       
    81          void TestClearL();
       
    82          
       
    83          void TestCloneL();
       
    84          
       
    85          // CRsfwMountMan API
       
    86                                  
       
    87          void TestAddMountEntryL();
       
    88          
       
    89          void TestAddMountEntry2L();
       
    90 
       
    91          void TestAddMountEntry3L();
       
    92          
       
    93          void TestEditMountEntryL();
       
    94          
       
    95          void TestEditMountEntry2L();
       
    96          
       
    97          void TestEditMountEntry3L();
       
    98          
       
    99          void TestDeleteMountEntryL();
       
   100          
       
   101          void TestDeleteMountEntry2L();
       
   102          
       
   103          void TestDeleteMountEntry3L();
       
   104          
       
   105          void TestMountEntryL();
       
   106          
       
   107          void TestMountEntry2L();
       
   108          
       
   109          void TestGetAllDrivesL();
       
   110          
       
   111          void TestGetRemoteMountListL();
       
   112          
       
   113          void TestGetMountNamesL();
       
   114          
       
   115          void TestGetMountInfoL();
       
   116          
       
   117          void TestIsAppOnBlackListL();
       
   118          
       
   119          void TestSetMountConnectionStateL();
       
   120          
       
   121          void TestRefreshDirectoryL();
       
   122          
       
   123          void TestCancelRemoteTransferL();
       
   124          
       
   125          void TestSetMountConnectionStateBlindL();
       
   126 
       
   127          // TRsfwMountConfig API
       
   128 
       
   129          void TestExternalizeAndInternalizeL();
       
   130         
       
   131          // utility functions
       
   132          
       
   133          TInt AddMountEntryL(TInt aIndex,
       
   134                              const TDesC& aName,
       
   135                              TChar aDriveLetter,
       
   136                              const TDesC& aUri,
       
   137                              const TDesC& aUserName,
       
   138                              const TDesC& aPassword,
       
   139                              const TDesC& aIap);
       
   140 
       
   141          TInt EditMountEntryL(TInt aIndex,
       
   142                              const TDesC& aName,
       
   143                              TChar aDriveLetter,
       
   144                              const TDesC& aUri,
       
   145                              const TDesC& aUserName,
       
   146                              const TDesC& aPassword,
       
   147                              const TDesC& aIap);        
       
   148          
       
   149          void ClearAllMountsL(); 
       
   150          
       
   151          TChar DriveToChar(TInt aDrive);
       
   152          
       
   153          TInt CompareArrays(CDesC16Array* aArray1, CDesC16Array* aArray2);
       
   154 
       
   155          TInt CheckEntryL(const CRsfwMountEntry* aEntry,
       
   156                           TInt aIndex,
       
   157                           const TDesC& aName,
       
   158                           TChar aDriveLetter,
       
   159                           const TDesC& aUri,
       
   160                           const TDesC& aUserName,
       
   161                           const TDesC& aPassword,
       
   162                           const TDesC& aIap);
       
   163 
       
   164     private:    // Data
       
   165         CRsfwMountMan* iMountMan;
       
   166         RFs iFs;
       
   167         EUNIT_DECLARE_TEST_TABLE; 
       
   168 
       
   169     };	    
       
   170 
       
   171 #endif      //  __T_MOUNTMAN_H__
       
   172 
       
   173 // End of file