~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/plugin/authentication_test.cc

  • Committer: Patrick Crews
  • Date: 2010-12-07 20:02:50 UTC
  • Revision ID: gleebix@gmail.com-20101207200250-6a27jgqalgw5bsb5
Added disabled.def file to disable drizzleslap due to Bug#684269.  Need to skip for tarball release this round

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <drizzled/error.h>
24
24
#include <drizzled/plugin/authentication.h>
25
 
#include <drizzled/identifier.h>
 
25
#include <drizzled/security_context.h>
26
26
#include <gtest/gtest.h>
27
27
#include <string>
28
28
 
30
30
 
31
31
using namespace drizzled;
32
32
 
33
 
static void error_handler_func_stub(drizzled::error_t my_err, const char *str, myf MyFlags)
 
33
static void error_handler_func_stub(uint32_t my_err, const char *str, myf MyFlags)
34
34
{
35
35
  (void)my_err;
36
36
  (void)str;
40
40
class AuthenticationTest : public ::testing::Test
41
41
{
42
42
public:
43
 
  identifier::User::const_shared_ptr sctx;
 
43
  SecurityContext sctx;
44
44
  std::string passwd;
45
45
  AuthenticationStub stub1;
46
46
  AuthenticationStub stub2;
47
47
 
48
48
  AuthenticationTest() :
49
 
    sctx(drizzled::identifier::User::make_shared()),
50
49
    stub1("AuthenticationStub1"),
51
50
    stub2("AuthenticationStub2")
52
 
  {
53
 
  }
 
51
  {}
54
52
  
55
53
  virtual void SetUp ()
56
54
  {