homescreensrv_plat/action_handler_plugin_api/tsrc/src/ahpluginapitest.cpp
changeset 93 82b66994846c
parent 92 782e3408c2ab
child 94 dbb8300717f7
equal deleted inserted replaced
92:782e3408c2ab 93:82b66994846c
     1 /*
       
     2 * Copyright (c) 2009 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 // INCLUDE FILES
       
    18 
       
    19 #include <ecom/ecom.h>
       
    20 #include <Stiftestinterface.h>
       
    21 #include "ahpluginapitest.h"
       
    22 #include "ahtestplugin.h"
       
    23 #include <LiwVariant.h>
       
    24 _LIT8( KTitle , "title" );
       
    25 _LIT8( KMessage, "message" );
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 
       
    29 TInt CAHPluginApiTest::Test_CAHPluginExecuteActionL(CStifItemParser& )
       
    30     {
       
    31     TInt result (KErrGeneral);
       
    32     CLiwDefaultMap* map = CLiwDefaultMap::NewLC( );
       
    33     map->InsertL( KTitle, _L8("title") );
       
    34     map->InsertL( KMessage, _L8("message") );
       
    35     CActionHandlerTestPlugin* plugin = CActionHandlerTestPlugin::NewLC();
       
    36     result = plugin->ExecuteActionL( map );
       
    37     CleanupStack::PopAndDestroy( plugin );
       
    38     CleanupStack::PopAndDestroy( map );
       
    39     return result;
       
    40     }
       
    41