equal
deleted
inserted
replaced
|
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 |
|
17 #ifndef __POST12_H__ |
|
18 #define __POST12_H__ |
|
19 |
|
20 #include "HttpTestCore.h" |
|
21 #include "CHttpAccepTtestBase.h" |
|
22 #include <http.h> |
|
23 #include <http/mhttpauthenticationcallback.h> |
|
24 |
|
25 /* post content which requires authorisation |
|
26 and provide valid username/password (scooby/doo) */ |
|
27 |
|
28 class CHttpTestCasePost12: public CHttpAcceptTestBase, MHTTPAuthenticationCallback |
|
29 { |
|
30 public: |
|
31 CHttpTestCasePost12(CScriptFile* aIniSettingsFile); |
|
32 virtual TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, RStringF aAuthenticationType, RString& aUsername,RString& aPassword); |
|
33 |
|
34 protected: |
|
35 const TDesC& TestName(); |
|
36 void OpenTestSessionL(); |
|
37 void CloseTestSession(); |
|
38 |
|
39 private: |
|
40 /** This has the instance of the settings.ini file. This instance is passed |
|
41 to ReplaceHostNameL() function which uses this instance to retrieve the |
|
42 data from settings.ini file. |
|
43 */ |
|
44 CScriptFile* iIniSettingsFile; |
|
45 }; |
|
46 |
|
47 #endif |