blob: 8c87239df6463843a171709796e28553604c4308 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cryptohome/mock_user_session.h"
namespace cryptohome {
MockUserSession::MockUserSession() : user_session_() {
ON_CALL(*this, Init(_))
.WillByDefault(Invoke(&user_session_, &UserSession::Init));
ON_CALL(*this, SetUser(_))
.WillByDefault(Invoke(&user_session_, &UserSession::SetUser));
ON_CALL(*this, Reset())
.WillByDefault(Invoke(&user_session_, &UserSession::Reset));
ON_CALL(*this, CheckUser(_))
.WillByDefault(Invoke(&user_session_, &UserSession::CheckUser));
ON_CALL(*this, Verify(_))
.WillByDefault(Invoke(&user_session_, &UserSession::Verify));
}
MockUserSession::~MockUserSession() {}
} // namespace cryptohome