~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/plugin/plugin_stubs.h

  • Committer: Paweł Blokus
  • Date: 2010-06-09 21:37:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1620.
  • Revision ID: pawel@pawel-desktop-20100609213715-bq6c1dw8owg2sjtj
ErrorMessage stub
set up everything for ErrorMessage interface tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
 #include "config.h"
26
26
 #include <drizzled/plugin/client.h>
 
27
 #include <drizzled/plugin/error_message.h>
27
28
 #include <cstring>
28
29
 
29
30
class ClientStub : public drizzled::plugin::Client
195
196
    virtual bool wasAborted(void) { return false;};
196
197
};
197
198
 
 
199
class ErrorMessageStub : public drizzled::plugin::ErrorMessage
 
200
{
 
201
 
 
202
  public:
 
203
    ErrorMessageStub() : ErrorMessage("ErrorMessageStub") {}
 
204
    
 
205
    virtual bool errmsg(drizzled::Session *session, int priority, const char *format, va_list ap)
 
206
    {
 
207
      (void)session;
 
208
      (void)priority;
 
209
      (void)format;
 
210
      (void)ap;
 
211
      return false;
 
212
    }
 
213
};
198
214
 
199
215
#endif /* UNITTESTS_STUB_PLUGIN_STUBS_H */