1 #if !defined(AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_)
2 #define AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_
6 #endif // _MSC_VER > 1000
7 // nsIHttpChannelTests.h : header file
12 /////////////////////////////////////////////////////////////////////////////
13 // nsIHttpChannelTests window
15 class CnsIHttpChannelTests
19 CnsIHttpChannelTests(nsIWebBrowser
* mWebBrowser
, CBrowserImpl
*mpBrowserImpl
);
23 nsIHttpChannel
* GetHttpChannelObject(nsCAutoString
);
24 void OnStartTests(UINT nMenuID
);
26 void SetRequestMethodTest(nsIHttpChannel
*, const char *, PRInt16
);
27 void GetRequestMethodTest(nsIHttpChannel
*, PRInt16
);
28 void SetReferrerTest(nsIHttpChannel
*, const char *, PRInt16
);
29 void GetReferrerTest(nsIHttpChannel
*, PRInt16
);
30 void SetRequestHeaderTest(nsIHttpChannel
*, const char *, const char *, PRInt16
);
31 void GetRequestHeaderTest(nsIHttpChannel
*, const char *, PRInt16
);
32 void VisitRequestHeadersTest(nsIHttpChannel
*, PRInt16
);
33 void SetAllowPipeliningTest(nsIHttpChannel
*, PRBool
, PRInt16
);
34 void GetAllowPipeliningTest(nsIHttpChannel
*, PRInt16
);
35 void SetRedirectionLimitTest(nsIHttpChannel
*, PRUint32
, PRInt16
);
36 void GetRedirectionLimitTest(nsIHttpChannel
*, PRInt16
);
39 void CallResponseTests(nsIHttpChannel
*, PRInt16
);
40 void GetResponseStatusTest(nsIHttpChannel
*, PRInt16
);
41 void GetResponseStatusTextTest(nsIHttpChannel
*, PRInt16
);
42 void GetRequestSucceededTest(nsIHttpChannel
*, PRInt16
);
43 void GetResponseHeaderTest(nsIHttpChannel
*, const char *, PRInt16
);
44 void SetResponseHeaderTest(nsIHttpChannel
*, const char *, const char *, PRBool
, PRInt16
);
45 void VisitResponseHeaderTest(nsIHttpChannel
*, PRInt16
);
46 void IsNoStoreResponseTest(nsIHttpChannel
*, PRInt16
);
47 void IsNoCacheResponseTest(nsIHttpChannel
*, PRInt16
);
54 // ClassWizard generated virtual function overrides
55 //{{AFX_VIRTUAL(nsIHttpChannelTests)
60 virtual ~CnsIHttpChannelTests();
62 // Generated message map functions
66 CBrowserImpl
*qaBrowserImpl
;
67 nsCOMPtr
<nsIWebBrowser
> qaWebBrowser
;
68 nsCOMPtr
<nsIChannel
> theChannel
;
69 nsCOMPtr
<nsIURI
> theURI
;
70 nsCOMPtr
<nsIHttpChannel
> theHttpChannel
;
71 nsCAutoString theSpec
;
74 /////////////////////////////////////////////////////////////////////////////
76 //{{AFX_INSERT_LOCATION}}
77 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
79 #endif // !defined(AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_)