Back to index

lightning-sunbird  0.9+nobinonly
nsihttpchanneltests.h
Go to the documentation of this file.
00001 #if !defined(AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_)
00002 #define AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // nsIHttpChannelTests.h : header file
00008 //
00009 
00010 #include "Tests.h"
00011 
00013 // nsIHttpChannelTests window
00014 
00015 class CnsIHttpChannelTests
00016 {
00017 // Construction
00018 public:
00019        CnsIHttpChannelTests(nsIWebBrowser* mWebBrowser, CBrowserImpl *mpBrowserImpl);
00020 
00021 // Attributes
00022 
00023        nsIHttpChannel * GetHttpChannelObject(nsCAutoString);
00024        void OnStartTests(UINT nMenuID);
00025        void RunAllTests();
00026        void SetRequestMethodTest(nsIHttpChannel *, const char *, PRInt16);
00027        void GetRequestMethodTest(nsIHttpChannel *, PRInt16);
00028        void SetReferrerTest(nsIHttpChannel *, const char *, PRInt16);
00029        void GetReferrerTest(nsIHttpChannel *, PRInt16);
00030        void SetRequestHeaderTest(nsIHttpChannel *, const char *, const char *, PRInt16);
00031        void GetRequestHeaderTest(nsIHttpChannel *, const char *, PRInt16);
00032        void VisitRequestHeadersTest(nsIHttpChannel *, PRInt16);
00033        void SetAllowPipeliningTest(nsIHttpChannel *, PRBool, PRInt16);
00034        void GetAllowPipeliningTest(nsIHttpChannel *, PRInt16);
00035        void SetRedirectionLimitTest(nsIHttpChannel *, PRUint32, PRInt16);
00036        void GetRedirectionLimitTest(nsIHttpChannel *, PRInt16);
00037 
00038        // response methods
00039        void CallResponseTests(nsIHttpChannel *, PRInt16);
00040        void GetResponseStatusTest(nsIHttpChannel *, PRInt16);
00041        void GetResponseStatusTextTest(nsIHttpChannel *, PRInt16);
00042        void GetRequestSucceededTest(nsIHttpChannel *, PRInt16);
00043        void GetResponseHeaderTest(nsIHttpChannel *, const char *, PRInt16);
00044        void SetResponseHeaderTest(nsIHttpChannel *, const char *, const char *, PRBool, PRInt16);
00045        void VisitResponseHeaderTest(nsIHttpChannel *, PRInt16);
00046        void IsNoStoreResponseTest(nsIHttpChannel *, PRInt16);
00047        void IsNoCacheResponseTest(nsIHttpChannel *, PRInt16);
00048 public:
00049 
00050 // Operations
00051 public:
00052 
00053 // Overrides
00054        // ClassWizard generated virtual function overrides
00055        //{{AFX_VIRTUAL(nsIHttpChannelTests)
00056        //}}AFX_VIRTUAL
00057 
00058 // Implementation
00059 public:
00060        virtual ~CnsIHttpChannelTests();
00061 
00062        // Generated message map functions
00063 protected:
00064 
00065 private:
00066        CBrowserImpl *qaBrowserImpl;
00067        nsCOMPtr<nsIWebBrowser> qaWebBrowser;
00068        nsCOMPtr<nsIChannel> theChannel;
00069        nsCOMPtr<nsIURI> theURI;
00070        nsCOMPtr<nsIHttpChannel> theHttpChannel;
00071        nsCAutoString theSpec;
00072 };
00073 
00075 
00076 //{{AFX_INSERT_LOCATION}}
00077 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00078 
00079 #endif // !defined(AFX_NSIHTTPCHANNELTESTS_H__A7985BC6_9A57_453F_BEE4_17A083131427__INCLUDED_)