Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / qa / testembed / nsichanneltests.h
blob3b7b5ac7016c396800e6e560b6a115b269425b19
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
23 * David Epstein <depstein@netscape.com>
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 // nsIChannelTests.h : header file for nsIChannel test cases
41 #include "Tests.h"
43 #if !defined(AFX_NSICHANNELTESTS_H__33C5EBD3_0178_11D7_9C13_00C04FA02BE6__INCLUDED_)
44 #define AFX_NSICHANNELTESTS_H__33C5EBD3_0178_11D7_9C13_00C04FA02BE6__INCLUDED_
46 #if _MSC_VER > 1000
47 #pragma once
48 #endif // _MSC_VER > 1000
50 // nsIChannelTests.h : header file
53 /////////////////////////////////////////////////////////////////////////////
54 // nsIChannelTests window
56 class CnsIChannelTests
58 // Construction
59 public:
60 CnsIChannelTests(nsIWebBrowser* mWebBrowser, CBrowserImpl *mpBrowserImpl);
62 // Attributes
63 public:
65 // Operations
66 public:
68 // Implementation
69 nsIChannel * GetChannelObject(nsCAutoString);
70 nsIURI * GetURIObject(nsCAutoString);
71 void SetOriginalURITest(nsIChannel *, nsCAutoString, PRInt16);
72 void GetOriginalURITest(nsIChannel *, PRInt16);
73 void GetURITest(nsIChannel *, PRInt16);
74 void SetOwnerTest(nsIChannel *, PRInt16);
75 void GetOwnerTest(nsIChannel *, PRInt16);
76 void SetNotificationsTest(nsIChannel *, PRInt16);
77 void GetNotificationsTest(nsIChannel *, PRInt16);
78 void GetSecurityInfoTest(nsIChannel *, PRInt16);
79 void SetContentTypeTest(nsIChannel *, PRInt16);
80 void GetContentTypeTest(nsIChannel *, PRInt16);
81 void SetContentCharsetTest(nsIChannel *, PRInt16);
82 void GetContentCharsetTest(nsIChannel *, PRInt16);
83 void SetContentLengthTest(nsIChannel *, PRInt16);
84 void GetContentLengthTest(nsIChannel *, PRInt16);
85 void OpenTest(nsIChannel *, PRInt16);
86 void AsyncOpenTest(nsIChannel *, PRInt16);
87 void PostAsyncOpenTests(nsIChannel *, PRInt16);
88 void OnStartTests(UINT nMenuID);
89 void RunAllTests();
90 public:
91 virtual ~CnsIChannelTests();
93 // Generated message map functions
94 protected:
96 private:
97 CBrowserImpl *qaBrowserImpl;
98 nsCOMPtr<nsIWebBrowser> qaWebBrowser;
99 nsCOMPtr<nsIChannel> theChannel;
100 nsCOMPtr<nsIURI> theURI;
101 nsCOMPtr<nsISupports> theSupports;
102 nsCOMPtr<nsIInterfaceRequestor> theIRequestor;
103 nsCOMPtr<nsIInputStream> theInputStream;
104 nsCAutoString theSpec;
107 typedef struct
109 char theURL[1024];
110 char contentType[1024];
111 } ChannelRow;
113 /////////////////////////////////////////////////////////////////////////////
115 //{{AFX_INSERT_LOCATION}}
116 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
118 #endif // !defined(AFX_NSICHANNELTESTS_H__33C5EBD3_0178_11D7_9C13_00C04FA02BE6__INCLUDED_)