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 .
21 #include <rtl/strbuf.hxx>
23 Reference
< XInterface
> SAL_CALL
OPipeTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw( Exception
);
24 Sequence
<OUString
> OPipeTest_getSupportedServiceNames() throw();
25 OUString
OPipeTest_getServiceName() throw();
26 OUString
OPipeTest_getImplementationName() throw();
28 Reference
< XInterface
> SAL_CALL
OPumpTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw( Exception
);
29 Sequence
<OUString
> OPumpTest_getSupportedServiceNames() throw();
30 OUString
OPumpTest_getServiceName() throw();
31 OUString
OPumpTest_getImplementationName() throw();
33 Reference
< XInterface
> SAL_CALL
ODataStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
34 Sequence
<OUString
> ODataStreamTest_getSupportedServiceNames( int i
) throw();
35 OUString
ODataStreamTest_getServiceName( int i
) throw();
36 OUString
ODataStreamTest_getImplementationName( int i
) throw();
38 Reference
< XInterface
> SAL_CALL
OMarkableOutputStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
39 Sequence
<OUString
> OMarkableOutputStreamTest_getSupportedServiceNames() throw();
40 OUString
OMarkableOutputStreamTest_getServiceName() throw();
41 OUString
OMarkableOutputStreamTest_getImplementationName() throw();
43 Reference
< XInterface
> SAL_CALL
OMarkableInputStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
44 Sequence
<OUString
> OMarkableInputStreamTest_getSupportedServiceNames() throw();
45 OUString
OMarkableInputStreamTest_getServiceName() throw();
46 OUString
OMarkableInputStreamTest_getImplementationName() throw();
48 Reference
< XInterface
> SAL_CALL
OObjectStreamTest_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
49 Sequence
<OUString
> OObjectStreamTest_getSupportedServiceNames( int i
) throw();
50 OUString
OObjectStreamTest_getServiceName( int i
) throw();
51 OUString
OObjectStreamTest_getImplementationName( int i
) throw();
53 Reference
< XInterface
> SAL_CALL
OMyPersistObject_CreateInstance( const Reference
< XMultiServiceFactory
> & rSMgr
) throw(Exception
);
54 Sequence
<OUString
> OMyPersistObject_getSupportedServiceNames( ) throw();
55 OUString
OMyPersistObject_getServiceName( ) throw();
56 OUString
OMyPersistObject_getImplementationName( ) throw();
58 Sequence
<sal_Int8
> createSeq( char * p
);
59 Sequence
<sal_Int8
> createIntSeq( sal_Int32 i
);
61 #define BUILD_ERROR(expr, Message)\
63 m_seqErrors.realloc( m_seqErrors.getLength() + 1 ); \
64 m_seqExceptions.realloc( m_seqExceptions.getLength() + 1 ); \
65 OStringBuffer str(128); \
66 str.append( __FILE__ );\
69 str.append( OString::valueOf( (sal_Int32)__LINE__) );\
72 str.append( #expr ); \
73 str.append( " ] : " ); \
74 str.append( Message ); \
75 m_seqErrors.getArray()[ m_seqErrors.getLength()-1] =\
76 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
81 #define WARNING_ASSERT(expr, Message) \
83 m_seqWarnings.realloc( m_seqErrors.getLength() +1 ); \
84 OStringBuffer str(128);\
85 str.append( __FILE__);\
88 str.append(OString::valueOf( (sal_Int32)__LINE__)) ;\
91 str.append( #expr ); \
92 str.append( " ] : ") ; \
93 str.append( Message); \
94 m_seqWarnings.getArray()[ m_seqWarnings.getLength()-1] =\
95 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
100 #define ERROR_ASSERT(expr, Message) \
102 BUILD_ERROR(expr, Message );\
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */