blob: 6ed3ee560b6c75e5b8366f8558cc0691ef273a49 [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 "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