bump product version to 4.1.6.2
[LibreOffice.git] / io / test / stm / testfactreg.hxx
blobb43315570db2213094f2ccb1b59aa65ceccc55bb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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__ );\
65 str.append( " " ); \
66 str.append( "(" ); \
67 str.append( OString::valueOf( (sal_Int32)__LINE__) );\
68 str.append(")\n" );\
69 str.append( "[ " ); \
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 ); \
76 ((void)0)
79 #define WARNING_ASSERT(expr, Message) \
80 if( ! (expr) ) { \
81 m_seqWarnings.realloc( m_seqErrors.getLength() +1 ); \
82 OStringBuffer str(128);\
83 str.append( __FILE__);\
84 str.append( " "); \
85 str.append( "(" ); \
86 str.append(OString::valueOf( (sal_Int32)__LINE__)) ;\
87 str.append( ")\n");\
88 str.append( "[ " ); \
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 ); \
94 return; \
96 ((void)0)
98 #define ERROR_ASSERT(expr, Message) \
99 if( ! (expr) ) { \
100 BUILD_ERROR(expr, Message );\
101 return; \
103 ((void)0)
105 #define ERROR_EXCEPTION_ASSERT(expr, Message, Exception) \
106 if( !(expr)) { \
107 BUILD_ERROR(expr,Message);\
108 m_seqExceptions.getArray()[ m_seqExceptions.getLength()-1] = Any( Exception );\
109 return; \
111 ((void)0)
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */