1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #include <rtl/strbuf.hxx>
30 Reference
< XInterface
> SAL_CALL
OPipeTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw( Exception
);
31 Sequence
<OUString
> OPipeTest_getSupportedServiceNames(void) throw();
32 OUString
OPipeTest_getServiceName() throw();
33 OUString
OPipeTest_getImplementationName() throw();
35 Reference
< XInterface
> SAL_CALL
OPumpTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw( Exception
);
36 Sequence
<OUString
> OPumpTest_getSupportedServiceNames(void) throw();
37 OUString
OPumpTest_getServiceName() throw();
38 OUString
OPumpTest_getImplementationName() throw();
40 Reference
< XInterface
> SAL_CALL
ODataStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
41 Sequence
<OUString
> ODataStreamTest_getSupportedServiceNames( int i
) throw();
42 OUString
ODataStreamTest_getServiceName( int i
) throw();
43 OUString
ODataStreamTest_getImplementationName( int i
) throw();
45 Reference
< XInterface
> SAL_CALL
OMarkableOutputStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
46 Sequence
<OUString
> OMarkableOutputStreamTest_getSupportedServiceNames(void) throw();
47 OUString
OMarkableOutputStreamTest_getServiceName() throw();
48 OUString
OMarkableOutputStreamTest_getImplementationName() throw();
50 Reference
< XInterface
> SAL_CALL
OMarkableInputStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
51 Sequence
<OUString
> OMarkableInputStreamTest_getSupportedServiceNames(void) throw();
52 OUString
OMarkableInputStreamTest_getServiceName() throw();
53 OUString
OMarkableInputStreamTest_getImplementationName() throw();
55 Reference
< XInterface
> SAL_CALL
OObjectStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
56 Sequence
<OUString
> OObjectStreamTest_getSupportedServiceNames( int i
) throw();
57 OUString
OObjectStreamTest_getServiceName( int i
) throw();
58 OUString
OObjectStreamTest_getImplementationName( int i
) throw();
60 Reference
< XInterface
> SAL_CALL
OMyPersistObject_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
61 Sequence
<OUString
> OMyPersistObject_getSupportedServiceNames( ) throw();
62 OUString
OMyPersistObject_getServiceName( ) throw();
63 OUString
OMyPersistObject_getImplementationName( ) throw();
65 Sequence
<sal_Int8
> createSeq( char * p
);
66 Sequence
<sal_Int8
> createIntSeq( sal_Int32 i
);
68 #define BUILD_ERROR(expr, Message)\
70 m_seqErrors.realloc( m_seqErrors.getLength() + 1 ); \
71 m_seqExceptions.realloc( m_seqExceptions.getLength() + 1 ); \
72 OStringBuffer str(128); \
73 str.append( __FILE__ );\
76 str.append( OString::valueOf( (sal_Int32)__LINE__) );\
79 str.append( #expr ); \
80 str.append( " ] : " ); \
81 str.append( Message ); \
82 m_seqErrors.getArray()[ m_seqErrors.getLength()-1] =\
83 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
88 #define WARNING_ASSERT(expr, Message) \
90 m_seqWarnings.realloc( m_seqErrors.getLength() +1 ); \
91 OStringBuffer str(128);\
92 str.append( __FILE__);\
95 str.append(OString::valueOf( (sal_Int32)__LINE__)) ;\
98 str.append( #expr ); \
99 str.append( " ] : ") ; \
100 str.append( Message); \
101 m_seqWarnings.getArray()[ m_seqWarnings.getLength()-1] =\
102 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
107 #define ERROR_ASSERT(expr, Message) \
109 BUILD_ERROR(expr, Message );\
114 #define ERROR_EXCEPTION_ASSERT(expr, Message, Exception) \
116 BUILD_ERROR(expr,Message);\
117 m_seqExceptions.getArray()[ m_seqExceptions.getLength()-1] = Any( Exception );\
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */