applayerprotocols/httptransportfw/Test/Acceptance/Iter3/Iter3Post7.cpp
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2004-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 //
       
    15 
       
    16 #include "Iter3Post7.h"
       
    17 #include <http.h>
       
    18 
       
    19 const TDesC& CHttpTestCaseIter3Post7::TestName()
       
    20 	{
       
    21 	_LIT(KHeaderTestName,"Iteration 3 Post 7 ");
       
    22 	return KHeaderTestName;
       
    23 	}
       
    24 
       
    25 
       
    26 TBool CHttpTestCaseIter3Post7::GetCredentialsL(const TUriC8& aURI, RString aRealm, RStringF aAuthenticationType, RString& aUsername, RString& aPassword)
       
    27 	{
       
    28 	iEngine->Utils().LogIt(_L("Supplying credentials"));
       
    29 	// Can't log 8 bit data, so dump it.
       
    30 	iEngine->Utils().DumpData(aURI.UriDes());
       
    31 	iEngine->Utils().DumpData(aRealm.DesC());	
       
    32 	iEngine->Utils().DumpData(aAuthenticationType.DesC());	
       
    33 	_LIT8(KScooby, "scooby");
       
    34 	_LIT8(KDoo, "doo");
       
    35 	RStringPool p = aRealm.Pool();
       
    36 	aUsername = p.OpenStringL(KScooby);
       
    37 	aPassword = p.OpenStringL(KDoo);
       
    38 	return ETrue;
       
    39 	}
       
    40 
       
    41 CHttpTestCaseIter3Post7::CHttpTestCaseIter3Post7(CScriptFile* aIniSettingsFile)
       
    42 	{
       
    43 	iIniSettingsFile = aIniSettingsFile;
       
    44 	iExpectedStatusCode=200;
       
    45 	}
       
    46 
       
    47 TInt CHttpTestCaseIter3Post7::OverallDataSize()
       
    48 	{
       
    49 	return 9;
       
    50 	}