finally remove no long needed BasicTestBase
Change-Id: Ic1522b0c3a292af061f5777e06e796dd82884fbf
This commit is contained in:
parent
20f12a1d7a
commit
fea9b3a99a
@ -22,35 +22,6 @@
|
||||
#include "basic/sbuno.hxx"
|
||||
#include <osl/file.hxx>
|
||||
|
||||
class BasicTestBase : public test::BootstrapFixture
|
||||
{
|
||||
private:
|
||||
bool mbError;
|
||||
public:
|
||||
BasicTestBase() : BootstrapFixture(true, false), mbError(false) {};
|
||||
|
||||
|
||||
DECL_LINK( BasicErrorHdl, StarBASIC * );
|
||||
bool HasError() { return mbError; }
|
||||
void ResetError()
|
||||
{
|
||||
StarBASIC::SetGlobalErrorHdl( Link() );
|
||||
mbError = false;
|
||||
}
|
||||
BasicDLL& basicDLL()
|
||||
{
|
||||
static BasicDLL maDll; // we need a dll instance for resouce manager etc.
|
||||
return maDll;
|
||||
}
|
||||
};
|
||||
|
||||
IMPL_LINK( BasicTestBase, BasicErrorHdl, StarBASIC *, /*pBasic*/)
|
||||
{
|
||||
fprintf(stderr,"Got error: \n\t%s!!!\n", rtl::OUStringToOString( StarBASIC::GetErrorText(), RTL_TEXTENCODING_UTF8 ).getStr() );
|
||||
mbError = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
class MacroSnippet
|
||||
{
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user