1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #include <rtl/strbuf.hxx>
21 Reference
< XInterface
> SAL_CALL
OPipeTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw( Exception
);
22 Sequence
<OUString
> OPipeTest_getSupportedServiceNames(void) throw();
23 OUString
OPipeTest_getServiceName() throw();
24 OUString
OPipeTest_getImplementationName() throw();
26 Reference
< XInterface
> SAL_CALL
OPumpTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw( Exception
);
27 Sequence
<OUString
> OPumpTest_getSupportedServiceNames(void) throw();
28 OUString
OPumpTest_getServiceName() throw();
29 OUString
OPumpTest_getImplementationName() throw();
31 Reference
< XInterface
> SAL_CALL
ODataStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
32 Sequence
<OUString
> ODataStreamTest_getSupportedServiceNames( int i
) throw();
33 OUString
ODataStreamTest_getServiceName( int i
) throw();
34 OUString
ODataStreamTest_getImplementationName( int i
) throw();
36 Reference
< XInterface
> SAL_CALL
OMarkableOutputStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
37 Sequence
<OUString
> OMarkableOutputStreamTest_getSupportedServiceNames(void) throw();
38 OUString
OMarkableOutputStreamTest_getServiceName() throw();
39 OUString
OMarkableOutputStreamTest_getImplementationName() throw();
41 Reference
< XInterface
> SAL_CALL
OMarkableInputStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
42 Sequence
<OUString
> OMarkableInputStreamTest_getSupportedServiceNames(void) throw();
43 OUString
OMarkableInputStreamTest_getServiceName() throw();
44 OUString
OMarkableInputStreamTest_getImplementationName() throw();
46 Reference
< XInterface
> SAL_CALL
OObjectStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
47 Sequence
<OUString
> OObjectStreamTest_getSupportedServiceNames( int i
) throw();
48 OUString
OObjectStreamTest_getServiceName( int i
) throw();
49 OUString
OObjectStreamTest_getImplementationName( int i
) throw();
51 Reference
< XInterface
> SAL_CALL
OMyPersistObject_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
52 Sequence
<OUString
> OMyPersistObject_getSupportedServiceNames( ) throw();
53 OUString
OMyPersistObject_getServiceName( ) throw();
54 OUString
OMyPersistObject_getImplementationName( ) throw();
56 Sequence
<sal_Int8
> createSeq( char * p
);
57 Sequence
<sal_Int8
> createIntSeq( sal_Int32 i
);
59 #define BUILD_ERROR(expr, Message)\
61 m_seqErrors.realloc( m_seqErrors.getLength() + 1 ); \
62 m_seqExceptions.realloc( m_seqExceptions.getLength() + 1 ); \
63 OStringBuffer str(128); \
64 str.append( __FILE__ );\
67 str.append( OString::valueOf( (sal_Int32)__LINE__) );\
70 str.append( #expr ); \
71 str.append( " ] : " ); \
72 str.append( Message ); \
73 m_seqErrors.getArray()[ m_seqErrors.getLength()-1] =\
74 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
79 #define WARNING_ASSERT(expr, Message) \
81 m_seqWarnings.realloc( m_seqErrors.getLength() +1 ); \
82 OStringBuffer str(128);\
83 str.append( __FILE__);\
86 str.append(OString::valueOf( (sal_Int32)__LINE__)) ;\
89 str.append( #expr ); \
90 str.append( " ] : ") ; \
91 str.append( Message); \
92 m_seqWarnings.getArray()[ m_seqWarnings.getLength()-1] =\
93 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
98 #define ERROR_ASSERT(expr, Message) \
100 BUILD_ERROR(expr, Message );\
105 #define ERROR_EXCEPTION_ASSERT(expr, Message, Exception) \
107 BUILD_ERROR(expr,Message);\
108 m_seqExceptions.getArray()[ m_seqExceptions.getLength()-1] = Any( Exception );\
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */