~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/plugin/authentication_test.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 05:18:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2009.
  • Revision ID: brian@tangent.org-20101218051830-lswb13hfiqbia74o
Adding user identifier that makes use of a shared ptr to handle concurrency
issues around looking at the state of a connection.

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/security_context.h>
 
25
#include <drizzled/identifier.h>
26
26
#include <gtest/gtest.h>
27
27
#include <string>
28
28
 
40
40
class AuthenticationTest : public ::testing::Test
41
41
{
42
42
public:
43
 
  SecurityContext sctx;
 
43
  identifier::User::const_shared_ptr 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()),
49
50
    stub1("AuthenticationStub1"),
50
51
    stub2("AuthenticationStub2")
51
 
  {}
 
52
  {
 
53
  }
52
54
  
53
55
  virtual void SetUp ()
54
56
  {