diff -r 000000000000 -r b16258d2340f applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CINC078630.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CINC078630.cpp Tue Feb 02 01:09:52 2010 +0200 @@ -0,0 +1,123 @@ +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#include "CINC078630.h" +#include "httptestutils.h" + +const TInt KTransactionCount = 1; +const TInt KConnectionCount = 1; +_LIT8(KTxtRawRequest, "POST Microsoft-Server-ActiveSync?DeviceId=Foo&DeviceType=9999&Cmd=Ping HTTP/1.1\r\nHost: 127.0.0.1\r\nAccept-Language: en-us\r\nMS-ASProtocolVersion: 2.5\r\n\r\n"); +_LIT8(KTxtRawResponse, "HTTP/1.1 200 Ok\r\nContent-Length: 6\r\n\r\nhello!"); + +CINC078630* CINC078630::NewL(CHTTPTestUtils& aTestUtils) + { + CINC078630* self = new (ELeave) CINC078630(aTestUtils); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +CINC078630::CINC078630(CHTTPTestUtils& aTestUtils) +: CPipeliningTestCase(), iTestUtils(aTestUtils) + { + } + +void CINC078630::ConstructL() + { + } + +CINC078630::~CINC078630() + { + } + +const TDesC& CINC078630::TestCaseName() const + { + _LIT(KTxtTitle, "Defect Fix INC078630"); + return KTxtTitle(); + } + +TInt CINC078630::TotalTransactionCount() const + { + return KTransactionCount; + } + +TInt CINC078630::ConnectionCount() const + { + return KConnectionCount; + } + +RHTTPTransaction CINC078630::GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient) + { + __ASSERT_ALWAYS(aIndex