20 lines
420 B
C++
20 lines
420 B
C++
#pragma once
|
|
#include <gmock/gmock.h>
|
|
|
|
#include <eedb/Session.hpp>
|
|
|
|
#include <eedb/db/connection.hpp>
|
|
|
|
#include <Wt/Auth/Login.h>
|
|
#include <Wt/WEnvironment.h>
|
|
|
|
namespace eedb {
|
|
class SessionMock final : public Session {
|
|
// Session interface
|
|
public:
|
|
MOCK_METHOD0(db, eedb::db::PgConnection &());
|
|
MOCK_CONST_METHOD0(enviroment, const Wt::WEnvironment &());
|
|
MOCK_METHOD0(login, Wt::Auth::Login &());
|
|
};
|
|
}
|