summaryrefslogtreecommitdiff
path: root/salhelper/test
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2001-03-29 13:36:29 +0000
committerJoachim Lingner <jl@openoffice.org>2001-03-29 13:36:29 +0000
commit9c5b731708ad4348f4ae0a179ffd8b9b352bad84 (patch)
treeecf60e4c7e66c241f3fd58871f38bafa1cec2b8f /salhelper/test
parente874741900323f09c1148ee5a4ce0efdde721b55 (diff)
*** empty log message ***
Diffstat (limited to 'salhelper/test')
-rw-r--r--salhelper/test/Symbols/loader.cxx58
-rw-r--r--salhelper/test/Symbols/makefile.mk130
2 files changed, 188 insertions, 0 deletions
diff --git a/salhelper/test/Symbols/loader.cxx b/salhelper/test/Symbols/loader.cxx
new file mode 100644
index 000000000000..935528db52ad
--- /dev/null
+++ b/salhelper/test/Symbols/loader.cxx
@@ -0,0 +1,58 @@
+
+
+/*
+This small test program tests whether all necessary symbols are exported from
+isalhelper.lib. If this linker runs without errors than it is ok.
+
+(public)
+static class salhelper::ORealDynamicLoader * __cdecl salhelper::ORealDynamicLoader::newInstance(class salhelper::ORealDynamicLoader * *,class rtl::OUString const &,class rtl::OUString const &)
+
+unsigned long __cdecl salhelper::ORealDynamicLoader::acquire(void)
+
+unsigned long __cdecl salhelper::ORealDynamicLoader::release(void)
+
+void * __cdecl salhelper::ORealDynamicLoader::getApi(void)const
+
+(protected)
+salhelper::ORealDynamicLoader::ORealDynamicLoader( ORealDynamicLoader ** ppSetToZeroInDestructor,
+ const ::rtl::OUString& strModuleName,
+ const ::rtl::OUString& strInitFunction,
+ void* pApi,
+ oslModule pModule );
+
+
+virtual salhelper::ORealDynamicLoader::~ORealDynamicLoader();
+
+*/
+
+#include <salhelper/dynload.hxx>
+#include <rtl/ustring>
+
+using namespace salhelper;
+using namespace rtl;
+
+class Loader:public ORealDynamicLoader
+{
+public:
+ Loader(){}
+
+ void deletethis()
+ {
+ delete this;
+ }
+};
+
+int main( int argc, char *argv[ ], char *envp[ ] )
+{
+ ORealDynamicLoader* pLoader= ORealDynamicLoader::newInstance( NULL, OUString(), OUString());
+
+ pLoader->acquire();
+
+ pLoader->getApi();
+ pLoader->release();
+
+ Loader* pLoader2= new Loader();
+ pLoader2->deletethis();
+
+ return 0;
+}
diff --git a/salhelper/test/Symbols/makefile.mk b/salhelper/test/Symbols/makefile.mk
new file mode 100644
index 000000000000..45fc345650f6
--- /dev/null
+++ b/salhelper/test/Symbols/makefile.mk
@@ -0,0 +1,130 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1 $
+#
+# last change: $Author: jl $ $Date: 2001-03-29 14:36:29 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..$/
+
+PRJNAME=dtrans
+TARGET=dndTest
+TARGETTYPE=CUI
+LIBTARGET=NO
+
+#USE_DEFFILE= TRUE
+NO_BSYMBOLIC= TRUE
+ENABLE_EXCEPTIONS=TRUE
+BOOTSTRAP_SERVICE=FALSE
+
+# --- Settings ---
+
+.INCLUDE : svpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : sv.mk
+
+# --- Files ---
+
+# CFLAGS+=/GR -DUNICODE -D_UNICODE
+UNOUCRDEP= $(SOLARBINDIR)$/applicat.rdb
+UNOUCRRDB= $(SOLARBINDIR)$/applicat.rdb
+
+.IF "$(BOOTSTRAP_SERVICE)" == "TRUE"
+UNOUCROUT= $(OUT)$/inc$/comprehensive
+INCPRE+= $(OUT)$/inc$/comprehensive
+CPPUMAKERFLAGS += -C
+.ELSE
+UNOUCROUT= $(OUT)$/inc
+.ENDIF
+
+# UNOTYPES= com.sun.star.lang.XInitialization \
+
+
+
+.IF "$(depend)" != ""
+
+.ENDIF # depend
+
+APP1NOSAL=TRUE
+
+APP1TARGET= $(TARGET)
+
+APP1OBJS= $(OBJ)$/loader.obj
+
+#LIBCIMT=msvcrtd.lib
+
+
+APP1STDLIBS= \
+ $(SALLIB) \
+ $(CPPUHELPERLIB) \
+ $(CPPULIB)
+
+APP1LIBS= $(LB)$/isalhelper.lib
+
+
+
+.IF "$(GUI)"=="WNT"
+APP1STDLIBS += $(LIBCIMT)
+.ENDIF
+
+APP1DEF= $(MISC)\$(APP1TARGET).def
+
+# --- Targets ---
+
+.INCLUDE : target.mk
+