From bb732c7e8aadae5f3b06c3871718140da1457e2e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 18 Jan 2011 11:17:16 +0000 Subject: bah, this unittest can't be rescued, what it tests is long gone --- udm/source/unittest/makefile.mk | 77 --------------------------- udm/source/unittest/test.cxx | 114 ---------------------------------------- 2 files changed, 191 deletions(-) delete mode 100644 udm/source/unittest/makefile.mk delete mode 100644 udm/source/unittest/test.cxx (limited to 'udm') diff --git a/udm/source/unittest/makefile.mk b/udm/source/unittest/makefile.mk deleted file mode 100644 index deba241f03bd..000000000000 --- a/udm/source/unittest/makefile.mk +++ /dev/null @@ -1,77 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org 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 version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=cosv -TARGET=udm_unittest -TARGETTYPE=CUI - -# --- Settings ----------------------------------------------------- - -ENABLE_EXCEPTIONS=true -PRJINC=$(PRJ)$/source - -.INCLUDE : settings.mk -.INCLUDE : static.mk - -.INCLUDE : $(PRJ)$/source$/mkinc$/fullcpp.mk - - - - -# --- Files -------------------------------------------------------- - -OBJFILES= \ - $(OBJ)$/test.obj - - - - -APP1TARGET= $(TARGET) -APP1STACK= 1000000 -APP1OBJS= $(OBJ)$/test.obj - -.IF "$(COMEX)"=="10" -APP1STDLIBS= $(STATIC_LIBS) cosv.lib -.ELSE -APP1STDLIBS= $(STATIC_LIBS) msvcirt.lib cosv.lib -.ENDIF - - -APP1LIBS= $(LB)$/$(TARGET).lib - - -APP1DEPN= $(LB)$/$(TARGET).lib $(L)$/cosv.lib - - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk - - - diff --git a/udm/source/unittest/test.cxx b/udm/source/unittest/test.cxx deleted file mode 100644 index adfcbeeecae2..000000000000 --- a/udm/source/unittest/test.cxx +++ /dev/null @@ -1,114 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#include - - -// NOT FULLY DEFINED SERVICES -#include -#include - -using namespace udm; - -// TypeSystem aTypeSys; - - -class Function -{ - public: - - intt nId; -}; - -class Ctor : public Function -{ - public: - - csv::String sClassName; -}; - -class Method : public Function -{ - public: - - csv::String sFunctionName; - std::vector< std::pair< intt, String > > - aParameters; -}; - - -class PrObj -{ - public: - intt nId; - csv::String sName; - std::vector< PrObj* > - aMethods; - std::vector< PrObj* > - aData; -}; - - - - -void fx() -{ - intt n = 5; - Dyn px = new Integer_i(n); - Integer & x = *px; - - csv::String s; - Dyn ps = new String_i(s); - String & xs = *ps; - - xs = "Hallo"; - - int dev01 = 2; - - xs = csv::String("Haha"); - - dev01 = 2; - - csv::String s2 = xs; - - - dev01 = 2; - -// const char * pc = xs; - - - intt a = x; - x = 15; - - Cout() << a << " " << x << Endl(); // Must be: 5 15 -} - - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit