merge the formfield patch from ooo-build
[ooovba.git] / sal / qa / osl / security / osl_Security_Const.h
blob63a1c393238a31393224f233acd4b967b1401afa
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: osl_Security_Const.h,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 //------------------------------------------------------------------------
32 //------------------------------------------------------------------------
34 #ifndef _OSL_SECURITY_CONST_H_
35 #define _OSL_SECURITY_CONST_H_
37 #if ( defined WNT ) // Windows
38 //#define UNICODE
39 #include <tools/prewin.h>
40 // #include <windows.h>
41 #include <io.h>
42 #include <tools/postwin.h>
43 #endif
45 //------------------------------------------------------------------------
46 //------------------------------------------------------------------------
47 #include <sal/types.h>
48 #include <rtl/ustring.hxx>
49 #include <osl/file.hxx>
50 #include <osl/security.hxx>
52 #include <stdlib.h>
53 #include <stdio.h>
55 #if ( defined UNX ) || ( defined OS2 )
56 #include <unistd.h>
57 #include <pwd.h>
58 #endif
60 #include <cppunit/simpleheader.hxx>
61 // LLA: #include <testshl2/cmdlinebits.hxx>
64 #define BUFSIZE 1024
65 const char pTestString[17] = "Sun Microsystems";
68 #define OSLTEST_DECLARE_USTRING( str_name, str_value ) \
69 ::rtl::OUString a##str_name = rtl::OUString::createFromAscii( str_value )
71 //------------------------------------------------------------------------
72 // condition names
73 //------------------------------------------------------------------------
74 OSLTEST_DECLARE_USTRING( TestSec, "testsecurity" );
75 OSLTEST_DECLARE_USTRING( NullURL, "" );
77 ::rtl::OUString aLogonUser( aNullURL ), aLogonPasswd( aNullURL ), aFileServer( aNullURL ), aStringForward( aNullURL );
78 ::rtl::OUString strUserName( aNullURL ) , strComputerName( aNullURL ) , strHomeDirectory( aNullURL );
79 ::rtl::OUString strConfigDirectory( aNullURL ), strUserID( aNullURL );
81 sal_Bool isAdmin = sal_False;
83 #endif /* _OSL_SECURITY_CONST_H_ */