common/tools/ats/smoketest/lbs/lbsclient/src/ctlbsclientpostp17.cpp
changeset 748 e13acd883fbe
child 872 17498133d9ad
equal deleted inserted replaced
747:76f9aaeefbab 748:e13acd883fbe
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 //  INCLUDES
       
    19 #include "ctlbsclientpostp17.h"
       
    20 
       
    21 // CONSTANTS
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =======================
       
    24 
       
    25 // ---------------------------------------------------------
       
    26 // Constructor.
       
    27 // ---------------------------------------------------------
       
    28 CT_LbsClientPosTp17::CT_LbsClientPosTp17(CT_LbsServer& aParent): CT_LbsPortedStepBase(aParent) 
       
    29 	{  
       
    30 	_LIT(KTestName, "TP17 - Open nonexisting PSY");
       
    31 	SetTestStepName(KTestName); 
       
    32 	}
       
    33 
       
    34 // ---------------------------------------------------------
       
    35 // Destructor.
       
    36 // ---------------------------------------------------------
       
    37 CT_LbsClientPosTp17::~CT_LbsClientPosTp17()
       
    38 	{
       
    39 	}
       
    40 // ---------------------------------------------------------
       
    41 // CT_LbsClientPosTp17::StartL
       
    42 //
       
    43 // (other items were commented in a header).
       
    44 // ---------------------------------------------------------
       
    45 //
       
    46 void CT_LbsClientPosTp17::StartL()
       
    47     {    
       
    48     TUid nonExistent;
       
    49     nonExistent.iUid = 0x01234DCBD;
       
    50     
       
    51     TBuf<100> output;        
       
    52 
       
    53     ConnectL();
       
    54     TInt err = OpenPositionerByName(nonExistent);
       
    55     if (err != KErrNotFound )
       
    56         {
       
    57         output.Format(output, KErrNotFound , err);
       
    58         LogErrorAndLeaveL(output);
       
    59         }
       
    60     Disconnect();
       
    61     }
       
    62 
       
    63 //End of File