telephonyprotocols/psdagt/TS_PsdAgt/PsdAgtTestActivateContext.cpp
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This contains PsdAgt TestCase Test 10.1
       
    15 // 
       
    16 //
       
    17 
       
    18 // EPOC includes
       
    19 #include <e32base.h>
       
    20 #include <in_sock.h>
       
    21 
       
    22 // Test system includes
       
    23 #include "networking/log.h"
       
    24 #include "networking/teststep.h"
       
    25 #include "TestStepPsdAgt.h"
       
    26 #include "TestSuitePsdAgt.h"
       
    27 
       
    28 // COMMDB Database Undo
       
    29 #include "DbUndo.h"
       
    30 
       
    31 // RPacketContext
       
    32 #include <etelpckt.h> 
       
    33 
       
    34 // EPsdStartingConfiguration
       
    35 #include <psdprog.h>
       
    36 
       
    37 // Class definitions
       
    38 #include "PsdAgtTestActivateContext.h"
       
    39 
       
    40 // Test case 10.1
       
    41 enum TVerdict CPsdAgtTest10_1::doPsdAgtTestStepL( void )
       
    42 	{
       
    43 	TRealAgtNotify agtNotify; 
       
    44 	agtNotify.SetTestCase(1001);
       
    45 	NormalConnectL();
       
    46 
       
    47 	return iTestStepResult;
       
    48 	}
       
    49 
       
    50 // Test case 10.2
       
    51 enum TVerdict CPsdAgtTest10_2::doPsdAgtTestStepL( void )
       
    52 	{
       
    53 	TRealAgtNotify agtNotify; 
       
    54 	agtNotify.SetTestCase(1002);
       
    55 
       
    56 	ConnectExpectErrorL(KErrGeneral, EPsdFinishedActivation);
       
    57 
       
    58 	return iTestStepResult;
       
    59 	}
       
    60 
       
    61 // Test case 10.3
       
    62 enum TVerdict CPsdAgtTest10_3::doPsdAgtTestStepL( void )
       
    63 	{
       
    64 	TRealAgtNotify agtNotify; 
       
    65 	agtNotify.SetTestCase(1003);
       
    66 	ConnectExpectErrorL(KErrGeneral, EPsdFinishedActivation);
       
    67 
       
    68 	return iTestStepResult;
       
    69 	}