blob: a26060e6e5c67e96d0455085597fe477a4a837a2 [file] [log] [blame]
// Copyright 2018 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_signature_sealing_backend.h"
#include <libhwsec-foundation/error/testing_helper.h>
using brillo::Blob;
using ::hwsec::error::TPMError;
using ::hwsec::error::TPMRetryAction;
using ::hwsec_foundation::error::testing::ReturnError;
using testing::_;
namespace cryptohome {
MockSignatureSealingBackend::MockSignatureSealingBackend() {
ON_CALL(*this, CreateUnsealingSession(_, _, _, _, _, _))
.WillByDefault(ReturnError<TPMError>("fake", TPMRetryAction::kNoRetry));
}
MockSignatureSealingBackend::~MockSignatureSealingBackend() = default;
MockUnsealingSession::MockUnsealingSession() = default;
MockUnsealingSession::~MockUnsealingSession() = default;
} // namespace cryptohome