1514f4c20SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3514f4c20SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4514f4c20SAndrew Rist * or more contributor license agreements. See the NOTICE file 5514f4c20SAndrew Rist * distributed with this work for additional information 6514f4c20SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7514f4c20SAndrew Rist * to you under the Apache License, Version 2.0 (the 8514f4c20SAndrew Rist * "License"); you may not use this file except in compliance 9514f4c20SAndrew Rist * with the License. You may obtain a copy of the License at 10514f4c20SAndrew Rist * 11514f4c20SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12514f4c20SAndrew Rist * 13514f4c20SAndrew Rist * Unless required by applicable law or agreed to in writing, 14514f4c20SAndrew Rist * software distributed under the License is distributed on an 15514f4c20SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16514f4c20SAndrew Rist * KIND, either express or implied. See the License for the 17514f4c20SAndrew Rist * specific language governing permissions and limitations 18514f4c20SAndrew Rist * under the License. 19514f4c20SAndrew Rist * 20514f4c20SAndrew Rist *************************************************************/ 21514f4c20SAndrew Rist 22514f4c20SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir //------------------------------------------------------------------------ 25cdf0e10cSrcweir //------------------------------------------------------------------------ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _OSL_SECURITY_CONST_H_ 28cdf0e10cSrcweir #define _OSL_SECURITY_CONST_H_ 29cdf0e10cSrcweir 30cdf0e10cSrcweir #if ( defined WNT ) // Windows 31cdf0e10cSrcweir //#define UNICODE 32cdf0e10cSrcweir #include <tools/prewin.h> 33cdf0e10cSrcweir // #include <windows.h> 34cdf0e10cSrcweir #include <io.h> 35cdf0e10cSrcweir #include <tools/postwin.h> 36cdf0e10cSrcweir #endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir //------------------------------------------------------------------------ 39cdf0e10cSrcweir //------------------------------------------------------------------------ 40cdf0e10cSrcweir #include <sal/types.h> 41cdf0e10cSrcweir #include <rtl/ustring.hxx> 42cdf0e10cSrcweir #include <osl/file.hxx> 43cdf0e10cSrcweir #include <osl/security.hxx> 44cdf0e10cSrcweir 45cdf0e10cSrcweir #include <stdlib.h> 46cdf0e10cSrcweir #include <stdio.h> 47cdf0e10cSrcweir 48cdf0e10cSrcweir #if ( defined UNX ) || ( defined OS2 ) 49cdf0e10cSrcweir #include <unistd.h> 50cdf0e10cSrcweir #include <pwd.h> 51cdf0e10cSrcweir #endif 52cdf0e10cSrcweir 53*63045d55SDamjan Jovanovic #include "gtest/gtest.h" 54cdf0e10cSrcweir // LLA: #include <testshl2/cmdlinebits.hxx> 55cdf0e10cSrcweir 56cdf0e10cSrcweir 57cdf0e10cSrcweir #define BUFSIZE 1024 58cdf0e10cSrcweir const char pTestString[17] = "Sun Microsystems"; 59cdf0e10cSrcweir 60cdf0e10cSrcweir 61cdf0e10cSrcweir #define OSLTEST_DECLARE_USTRING( str_name, str_value ) \ 62cdf0e10cSrcweir ::rtl::OUString a##str_name = rtl::OUString::createFromAscii( str_value ) 63cdf0e10cSrcweir 64cdf0e10cSrcweir //------------------------------------------------------------------------ 65cdf0e10cSrcweir // condition names 66cdf0e10cSrcweir //------------------------------------------------------------------------ 67cdf0e10cSrcweir OSLTEST_DECLARE_USTRING( TestSec, "testsecurity" ); 68cdf0e10cSrcweir OSLTEST_DECLARE_USTRING( NullURL, "" ); 69cdf0e10cSrcweir 70cdf0e10cSrcweir ::rtl::OUString aLogonUser( aNullURL ), aLogonPasswd( aNullURL ), aFileServer( aNullURL ), aStringForward( aNullURL ); 71cdf0e10cSrcweir ::rtl::OUString strUserName( aNullURL ) , strComputerName( aNullURL ) , strHomeDirectory( aNullURL ); 72cdf0e10cSrcweir ::rtl::OUString strConfigDirectory( aNullURL ), strUserID( aNullURL ); 73cdf0e10cSrcweir 74cdf0e10cSrcweir sal_Bool isAdmin = sal_False; 75cdf0e10cSrcweir 76cdf0e10cSrcweir #endif /* _OSL_SECURITY_CONST_H_ */ 77