Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / qa / testembed / nsihttpchanneltests.h
blob3204f291d96d75bfbf208f2b636d43b84b62edf8
1 #if !defined(AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_)
2 #define AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // nsIHttpChannelTests.h : header file
8 //
10 #include "Tests.h"
12 /////////////////////////////////////////////////////////////////////////////
13 // nsIHttpChannelTests window
15 class CnsIHttpChannelTests
17 // Construction
18 public:
19 CnsIHttpChannelTests(nsIWebBrowser* mWebBrowser, CBrowserImpl *mpBrowserImpl);
21 // Attributes
23 nsIHttpChannel * GetHttpChannelObject(nsCAutoString);
24 void OnStartTests(UINT nMenuID);
25 void RunAllTests();
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);
38 // response methods
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);
48 public:
50 // Operations
51 public:
53 // Overrides
54 // ClassWizard generated virtual function overrides
55 //{{AFX_VIRTUAL(nsIHttpChannelTests)
56 //}}AFX_VIRTUAL
58 // Implementation
59 public:
60 virtual ~CnsIHttpChannelTests();
62 // Generated message map functions
63 protected:
65 private:
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_)