2002-12-28 07:43:56 +03:00
|
|
|
#if !defined(AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_)
|
|
|
|
#define AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
#pragma once
|
|
|
|
#endif // _MSC_VER > 1000
|
|
|
|
// nsIHttpChannelTests.h : header file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "Tests.h"
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// nsIHttpChannelTests window
|
|
|
|
|
|
|
|
class CnsIHttpChannelTests
|
|
|
|
{
|
|
|
|
// Construction
|
|
|
|
public:
|
|
|
|
CnsIHttpChannelTests(nsIWebBrowser* mWebBrowser, CBrowserImpl *mpBrowserImpl);
|
|
|
|
|
|
|
|
// Attributes
|
|
|
|
|
|
|
|
nsIHttpChannel * GetHttpChannelObject(nsCAutoString);
|
|
|
|
void OnStartTests(UINT nMenuID);
|
|
|
|
void RunAllTests();
|
2003-01-22 07:11:05 +03:00
|
|
|
void SetRequestMethodTest(nsIHttpChannel *, const char *, PRInt16);
|
2002-12-28 07:43:56 +03:00
|
|
|
void GetRequestMethodTest(nsIHttpChannel *, PRInt16);
|
2003-01-22 07:11:05 +03:00
|
|
|
void SetReferrerTest(nsIHttpChannel *, const char *, PRInt16);
|
2002-12-28 07:43:56 +03:00
|
|
|
void GetReferrerTest(nsIHttpChannel *, PRInt16);
|
2003-01-22 07:11:05 +03:00
|
|
|
void SetRequestHeaderTest(nsIHttpChannel *, const char *, const char *, PRInt16);
|
|
|
|
void GetRequestHeaderTest(nsIHttpChannel *, const char *, PRInt16);
|
2002-12-30 11:52:13 +03:00
|
|
|
void VisitRequestHeadersTest(nsIHttpChannel *, PRInt16);
|
|
|
|
void SetAllowPipeliningTest(nsIHttpChannel *, PRBool, PRInt16);
|
|
|
|
void GetAllowPipeliningTest(nsIHttpChannel *, PRInt16);
|
|
|
|
void SetRedirectionLimitTest(nsIHttpChannel *, PRUint32, PRInt16);
|
|
|
|
void GetRedirectionLimitTest(nsIHttpChannel *, PRInt16);
|
|
|
|
|
|
|
|
// response methods
|
2003-01-07 07:26:49 +03:00
|
|
|
void CallResponseTests(nsIHttpChannel *, PRInt16);
|
2002-12-30 11:52:13 +03:00
|
|
|
void GetResponseStatusTest(nsIHttpChannel *, PRInt16);
|
2003-01-07 07:26:49 +03:00
|
|
|
void GetResponseStatusTextTest(nsIHttpChannel *, PRInt16);
|
2003-01-16 09:44:49 +03:00
|
|
|
void GetRequestSucceededTest(nsIHttpChannel *, PRInt16);
|
2003-01-17 07:04:42 +03:00
|
|
|
void GetResponseHeaderTest(nsIHttpChannel *, const char *, PRInt16);
|
|
|
|
void SetResponseHeaderTest(nsIHttpChannel *, const char *, const char *, PRBool, PRInt16);
|
2003-01-24 06:56:31 +03:00
|
|
|
void VisitResponseHeaderTest(nsIHttpChannel *, PRInt16);
|
2003-01-16 09:44:49 +03:00
|
|
|
void IsNoStoreResponseTest(nsIHttpChannel *, PRInt16);
|
|
|
|
void IsNoCacheResponseTest(nsIHttpChannel *, PRInt16);
|
2002-12-28 07:43:56 +03:00
|
|
|
public:
|
|
|
|
|
|
|
|
// Operations
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Overrides
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
|
|
//{{AFX_VIRTUAL(nsIHttpChannelTests)
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
|
|
|
public:
|
|
|
|
virtual ~CnsIHttpChannelTests();
|
|
|
|
|
|
|
|
// Generated message map functions
|
|
|
|
protected:
|
|
|
|
|
|
|
|
private:
|
|
|
|
CBrowserImpl *qaBrowserImpl;
|
|
|
|
nsCOMPtr<nsIWebBrowser> qaWebBrowser;
|
|
|
|
nsCOMPtr<nsIChannel> theChannel;
|
|
|
|
nsCOMPtr<nsIURI> theURI;
|
|
|
|
nsCOMPtr<nsIHttpChannel> theHttpChannel;
|
|
|
|
nsCAutoString theSpec;
|
|
|
|
};
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
|
|
|
|
#endif // !defined(AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_)
|