Teach symstore more duplicated DLLs
[LibreOffice.git] / io / test / stm / testfactreg.hxx
blob2dbff6d62d2bd5714f2bec9984ccb386ca11089d
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 .
20 #ifndef INCLUDED_IO_TEST_STM_TESTFACTREG_HXX
21 #define INCLUDED_IO_TEST_STM_TESTFACTREG_HXX
23 #include <rtl/strbuf.hxx>
25 Reference< XInterface > SAL_CALL OPipeTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw( Exception );
26 Sequence<OUString> OPipeTest_getSupportedServiceNames() throw();
27 OUString OPipeTest_getServiceName() throw();
28 OUString OPipeTest_getImplementationName() throw();
30 Reference< XInterface > SAL_CALL OPumpTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw( Exception );
31 Sequence<OUString> OPumpTest_getSupportedServiceNames() throw();
32 OUString OPumpTest_getServiceName() throw();
33 OUString OPumpTest_getImplementationName() throw();
35 Reference< XInterface > SAL_CALL ODataStreamTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw(Exception);
36 Sequence<OUString> ODataStreamTest_getSupportedServiceNames( int i) throw();
37 OUString ODataStreamTest_getServiceName( int i) throw();
38 OUString ODataStreamTest_getImplementationName( int i) throw();
40 Reference< XInterface > SAL_CALL OMarkableOutputStreamTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw(Exception);
41 Sequence<OUString> OMarkableOutputStreamTest_getSupportedServiceNames() throw();
42 OUString OMarkableOutputStreamTest_getServiceName() throw();
43 OUString OMarkableOutputStreamTest_getImplementationName() throw();
45 Reference< XInterface > SAL_CALL OMarkableInputStreamTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw(Exception);
46 Sequence<OUString> OMarkableInputStreamTest_getSupportedServiceNames() throw();
47 OUString OMarkableInputStreamTest_getServiceName() throw();
48 OUString OMarkableInputStreamTest_getImplementationName() throw();
50 Reference< XInterface > SAL_CALL OObjectStreamTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw(Exception);
51 Sequence<OUString> OObjectStreamTest_getSupportedServiceNames( int i) throw();
52 OUString OObjectStreamTest_getServiceName( int i) throw();
53 OUString OObjectStreamTest_getImplementationName( int i) throw();
55 Reference< XInterface > SAL_CALL OMyPersistObject_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw(Exception);
56 Sequence<OUString> OMyPersistObject_getSupportedServiceNames( ) throw();
57 OUString OMyPersistObject_getServiceName( ) throw();
58 OUString OMyPersistObject_getImplementationName( ) throw();
60 Sequence<sal_Int8> createSeq( char * p );
61 Sequence<sal_Int8> createIntSeq( sal_Int32 i );
63 #define BUILD_ERROR(expr, Message)\
65 m_seqErrors.realloc( m_seqErrors.getLength() + 1 ); \
66 m_seqExceptions.realloc( m_seqExceptions.getLength() + 1 ); \
67 OStringBuffer str(128); \
68 str.append( __FILE__ );\
69 str.append( " " ); \
70 str.append( "(" ); \
71 str.append( OString::valueOf( (sal_Int32)__LINE__) );\
72 str.append(")\n" );\
73 str.append( "[ " ); \
74 str.append( #expr ); \
75 str.append( " ] : " ); \
76 str.append( Message ); \
77 m_seqErrors.getArray()[ m_seqErrors.getLength()-1] =\
78 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
80 ((void)0)
83 #define WARNING_ASSERT(expr, Message) \
84 if( ! (expr) ) { \
85 m_seqWarnings.realloc( m_seqErrors.getLength() +1 ); \
86 OStringBuffer str(128);\
87 str.append( __FILE__);\
88 str.append( " "); \
89 str.append( "(" ); \
90 str.append(OString::valueOf( (sal_Int32)__LINE__)) ;\
91 str.append( ")\n");\
92 str.append( "[ " ); \
93 str.append( #expr ); \
94 str.append( " ] : ") ; \
95 str.append( Message); \
96 m_seqWarnings.getArray()[ m_seqWarnings.getLength()-1] =\
97 OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
98 return; \
100 ((void)0)
102 #define ERROR_ASSERT(expr, Message) \
103 if( ! (expr) ) { \
104 BUILD_ERROR(expr, Message );\
105 return; \
107 ((void)0)
109 #endif // INCLUDED_IO_TEST_STM_TESTFACTREG_HXX
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */