mmshplugins/mmshaiwplugin/tsrc/ut_aiwplugin/src/ut_musaiwresourcefinder.cpp
changeset 22 496ad160a278
parent 0 f0cf47e981f9
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "ut_musaiwresourcefinder.h"
       
    21 #include "musaiwresourcefinder.h"
       
    22 
       
    23 #include <digia/eunit/eunitmacros.h>
       
    24 
       
    25 // Next row is to disable warning emerging from EUnit code.
       
    26 // Placement is due to a fact that most test case files
       
    27 // include this file. Directive can be removed when
       
    28 // EUnit is fixed.
       
    29 #pragma warn_illtokenpasting off
       
    30 
       
    31 
       
    32 _LIT( KMusAiwProviderResourceRom, "z:\\resource\\musaiwproviderui.rsc" );
       
    33 _LIT( KMusAiwProviderResourceRam, "c:\\resource\\musaiwproviderui.rsc" );
       
    34 
       
    35 
       
    36 // --------------------------------------------------------------------------
       
    37 //
       
    38 // --------------------------------------------------------------------------
       
    39 //
       
    40 UT_MusAiwResourceFinder* UT_MusAiwResourceFinder::NewL()
       
    41     {
       
    42     UT_MusAiwResourceFinder* self = new( ELeave ) UT_MusAiwResourceFinder;
       
    43     CleanupStack::Pop( self );
       
    44     return self;
       
    45 
       
    46     }
       
    47 
       
    48 
       
    49 // --------------------------------------------------------------------------
       
    50 //
       
    51 // --------------------------------------------------------------------------
       
    52 //
       
    53 UT_MusAiwResourceFinder* UT_MusAiwResourceFinder::NewLC()
       
    54     {
       
    55     UT_MusAiwResourceFinder* self = new( ELeave ) UT_MusAiwResourceFinder;
       
    56     CleanupStack::PushL( self );
       
    57     self->ConstructL();
       
    58     return self;
       
    59     }
       
    60 
       
    61 
       
    62 // --------------------------------------------------------------------------
       
    63 //
       
    64 // --------------------------------------------------------------------------
       
    65 //
       
    66 UT_MusAiwResourceFinder::~UT_MusAiwResourceFinder()
       
    67     {
       
    68     }
       
    69 
       
    70 
       
    71 // --------------------------------------------------------------------------
       
    72 //
       
    73 // --------------------------------------------------------------------------
       
    74 //
       
    75 UT_MusAiwResourceFinder::UT_MusAiwResourceFinder()
       
    76     {
       
    77     }
       
    78 
       
    79 
       
    80 // --------------------------------------------------------------------------
       
    81 //
       
    82 // --------------------------------------------------------------------------
       
    83 //
       
    84 void UT_MusAiwResourceFinder::ConstructL()
       
    85     {
       
    86     }
       
    87 
       
    88 
       
    89 // --------------------------------------------------------------------------
       
    90 //
       
    91 // --------------------------------------------------------------------------
       
    92 //
       
    93 void UT_MusAiwResourceFinder::SetupL()
       
    94     {
       
    95     }
       
    96 
       
    97 
       
    98 // --------------------------------------------------------------------------
       
    99 //
       
   100 // --------------------------------------------------------------------------
       
   101 //
       
   102 void UT_MusAiwResourceFinder::Teardown()
       
   103     {
       
   104     }
       
   105 
       
   106 
       
   107 // --- Test cases --------------------------------------------------------------
       
   108 
       
   109 
       
   110 // --------------------------------------------------------------------------
       
   111 //
       
   112 // --------------------------------------------------------------------------
       
   113 //
       
   114 void UT_MusAiwResourceFinder::TestL()
       
   115     {
       
   116     EUNIT_ASSERT( MusAiwResourceFinder::ResourceFilenameRom() ==
       
   117                   KMusAiwProviderResourceRom() )
       
   118     EUNIT_ASSERT( MusAiwResourceFinder::ResourceFilenameRam() ==
       
   119                   KMusAiwProviderResourceRam() )
       
   120     }
       
   121 
       
   122 
       
   123 
       
   124 //  TEST TABLE
       
   125 
       
   126 EUNIT_BEGIN_TEST_TABLE(
       
   127     UT_MusAiwResourceFinder,
       
   128     "MusAiwResourceFinder",
       
   129     "UT_MusAiwResourceFinder" )
       
   130 
       
   131 EUNIT_TEST(
       
   132     "TestL",
       
   133     "MusAiwResourceFinder",
       
   134     "ResourceFilenameRam, ResourceFilenameRom ",
       
   135     "FUNCTIONALITY",
       
   136     SetupL, TestL, Teardown)
       
   137 
       
   138 EUNIT_END_TEST_TABLE