blob: f87e7436fc3426769786155ae86946e4f4d2688c [file] [log] [blame]
// Copyright 2015 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.
#ifndef TRUNKS_MOCK_POLICY_SESSION_H_
#define TRUNKS_MOCK_POLICY_SESSION_H_
#include "trunks/policy_session.h"
#include <string>
#include <gmock/gmock.h>
namespace trunks {
class MockPolicySession : public PolicySession {
public:
MockPolicySession();
~MockPolicySession() override;
MOCK_METHOD0(GetDelegate, AuthorizationDelegate*());
MOCK_METHOD3(StartBoundSession, TPM_RC(
TPMI_DH_ENTITY bind_entity,
const std::string& bind_authorization_value,
bool enable_encryption));
MOCK_METHOD1(StartUnboundSession, TPM_RC(bool enable_encryption));
private:
DISALLOW_COPY_AND_ASSIGN(MockPolicySession);
};
} // namespace trunks
#endif // TRUNKS_MOCK_POLICY_SESSION_H_