~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/plugin/plugin_stubs.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 11:44:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623114430-no355yypk4y3icqb
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef UNITTESTS_STUB_PLUGIN_STUBS_H
23
23
#define UNITTESTS_STUB_PLUGIN_STUBS_H
24
24
 
25
 
#include "config.h"
 
25
#include <config.h>
26
26
 
27
27
#include <cstring>
28
28
#include <drizzled/plugin/authentication.h>
86
86
  virtual bool isConnected(void) { return false; };
87
87
 
88
88
  /**
89
 
  * Check to see if the client is actively reading.
90
 
  * @retval Boolean value representing reading state.
91
 
  */
92
 
  virtual bool isReading(void) { return false; };
93
 
 
94
 
  /**
95
 
  * Check to see if the client is actively writing.
96
 
  * @retval Boolean value representing writing state.
97
 
  */
98
 
  virtual bool isWriting(void)  { return false; };
99
 
 
100
 
  /**
101
89
  * Flush all data that has been buffered with store() methods.
102
90
  * @retval Boolean indicating success or failure.
103
91
  */
175
163
    (void)buffer;
176
164
    return store_ret_val;
177
165
  };
178
 
  virtual bool store(const drizzled::DRIZZLE_TIME *from)
 
166
  virtual bool store(const drizzled::type::Time *from)
179
167
  {
180
168
    return Client::store(from);
181
169
  }
194
182
  }
195
183
 
196
184
  /* Try to remove these. */
197
 
  virtual bool haveMoreData(void) { return false; };
198
185
  virtual bool haveError(void) { return false; };
199
186
  virtual bool wasAborted(void) { return false;};
200
187
};
231
218
    authenticate_return = value;
232
219
  }
233
220
 
234
 
  virtual bool authenticate(const drizzled::SecurityContext &sctx, const std::string &passwd)
 
221
  virtual bool authenticate(const drizzled::identifier::User &sctx, const std::string &passwd)
235
222
  {
236
223
    (void)sctx;
237
224
    (void)passwd;