Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / qa / testembed / QaUtils.h
blobd197583cfb6008f47d924dccbc4e8f5fa8d86211
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>
24 * Ashish Bhatt <ashishbhatt@netscape.com>
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
40 // QAUtils.h : Global function declarations
42 /////////////////////////////////////////////////////////////////////////////
44 #ifndef _QAUTILS_H
45 #define _QAUTILS_H
47 #if _MSC_VER > 1000
48 #pragma once
49 #endif
51 #include "BrowserView.h"
52 #include "resource.h"
53 #include "stdafx.h"
55 extern void RvTestResultDlg(nsresult rv, CString pLine,BOOL bClearList = false);
56 extern void RvTestResult(nsresult, const char *, int displayMethod=1);
57 extern void WriteToOutputFile(const char *);
58 extern void QAOutput(const char *pLine, int displayMethod=1);
59 extern void FormatAndPrintOutput(const char *, const char *, int);
60 extern void FormatAndPrintOutput(const char *, nsCAutoString, int);
61 extern void FormatAndPrintOutput(const char *, int, int);
62 extern void FormatAndPrintOutput(const char *, double, int);
63 extern void FormatAndPrintOutput(const char *, PRUint32, int);
64 extern void RequestName(nsIRequest *, nsCString &, int displayMethod=1);
65 extern void WebProgDOMWindowTest(nsIWebProgress *, const char *,int displayMethod=1);
66 extern void WebProgIsDocLoadingTest(nsIWebProgress *, const char *, int displayMethod=1);
67 extern void SaveObject(nsISupports *theSupports);
68 extern nsIDOMWindow * GetTheDOMWindow(nsIWebBrowser *);
69 extern nsCAutoString GetTheURI(nsIURI *theURI, int displayMethod=1);
70 extern void onStateChangeString(char *, char *, nsCString, PRUint32, int displayMethod=1);
71 extern nsresult rv;
73 #endif //_QAUTILS_H/////////////////////////////////////////////////////////////////////////////
76 // CShowTestResults dialog
77 class CShowTestResults : public CDialog
79 // Construction
80 public:
81 CShowTestResults(CWnd* pParent = NULL); // standard constructor
82 void AddItemToList(LPCTSTR szTestCaseName, BOOL bResult);
84 // Dialog Data
85 //{{AFX_DATA(CShowTestResults)
86 enum { IDD = IDD_RUNTESTSDLG };
87 CListCtrl m_ListResults;
88 //}}AFX_DATA
91 // Overrides
92 // ClassWizard generated virtual function overrides
93 //{{AFX_VIRTUAL(CShowTestResults)
94 protected:
95 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
96 //}}AFX_VIRTUAL
98 // Implementation
99 private:
100 LPCTSTR m_TitleString ;
101 protected:
103 // Generated message map functions
104 //{{AFX_MSG(CShowTestResults)
105 virtual BOOL OnInitDialog();
106 //}}AFX_MSG
107 DECLARE_MESSAGE_MAP()
111 typedef struct {
112 nsCOMPtr<nsISupports> sup;
113 }storage;