homescreensrv_plat/content_harvester_plugin_api/tsrc/src/cpspluginapitest.cpp
changeset 73 4bc7b118b3df
parent 66 32469d7d46ff
child 80 397d00875918
child 81 5ef31a21fdd5
equal deleted inserted replaced
66:32469d7d46ff 73:4bc7b118b3df
     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 "cpspluginapitest.h"
       
    22 #include "cpstestplugin.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 
       
    27 TInt CCPSPluginApiTest::Test_CContentHarvesterPluginUpdateL(CStifItemParser& )
       
    28     {
       
    29     TInt result (KErrGeneral);
       
    30     CCPSTestPlugin* plugin = CCPSTestPlugin::NewLC();
       
    31     if( plugin->iInt == KErrNotFound )
       
    32         {
       
    33         plugin->UpdateL();
       
    34         result = plugin->iInt;
       
    35         }
       
    36     CleanupStack::PopAndDestroy( plugin );
       
    37     return result;
       
    38     }
       
    39