~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/plugin/authentication_test.cc

merged with up to date trunk

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
  {