diff -r 000000000000 -r b16258d2340f applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CTestCase20.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CTestCase20.cpp Tue Feb 02 01:09:52 2010 +0200 @@ -0,0 +1,94 @@ +// 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 "CTestCase20.h" +#include "httptestutils.h" + +const TInt KTransactionCount = 2; +const TInt KConnectionCount = 1; +const TInt KBufferSize = 26; // Batching buffer size in bytes +_LIT8(KTxtRawRequest, "GET / HTTP/1.1\r\nHost: 127.0.0.1\r\n\r\n"); +_LIT8(KTxtRawResponse, "HTTP/1.1 200 Ok\r\nContent-Length: 6\r\n\r\nhello!"); + +CTestCase20* CTestCase20::NewL(CHTTPTestUtils& aTestUtils) + { + CTestCase20* self = new (ELeave) CTestCase20(aTestUtils); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +CTestCase20::CTestCase20(CHTTPTestUtils& aTestUtils) +: CBatchingTestCase(), iTestUtils(aTestUtils) + { + } + +void CTestCase20::ConstructL() + { + } + +CTestCase20::~CTestCase20() + { + } + +const TDesC& CTestCase20::TestCaseName() const + { + _LIT(KTxtTitle, "Test Case 20"); + return KTxtTitle(); + } + +TInt CTestCase20::TotalTransactionCount() const + { + return KTransactionCount; + } + +TInt CTestCase20::ConnectionCount() const + { + return KConnectionCount; + } + +RHTTPTransaction CTestCase20::GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient) + { + __ASSERT_ALWAYS(aIndex